nvim-telescope / telescope-ui-select.nvim

MIT License
747 stars 16 forks source link

Error when trying to display code action #43

Open flowrean-marcus opened 6 months ago

flowrean-marcus commented 6 months ago

Hello, I am having an issue when I am trying to display lsp code actions with telescope-ui-select. Details below.

nvim -v:

NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"

Run :checkhealth for more info

Trace:

Error executing vim.schedule lua callback: ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:32: attempt
 to index field 'version' (a function value)
stack traceback:
        ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:32: in function <...e-ui-select.nvim/lua/teles
cope/_extensions/ui-select.lua:23>
        ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:106: in function 'select'
        ...llar/neovim/0.8.3/share/nvim/runtime/lua/vim/lsp/buf.lua:868: in function 'on_code_action_results'
        ...llar/neovim/0.8.3/share/nvim/runtime/lua/vim/lsp/buf.lua:886: in function 'callback'
        ...w/Cellar/neovim/0.8.3/share/nvim/runtime/lua/vim/lsp.lua:1952: in function 'handler'
        ...w/Cellar/neovim/0.8.3/share/nvim/runtime/lua/vim/lsp.lua:1383: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
flowrean-marcus commented 6 months ago

It seems that upgrading neovim to the latest stable version fixed the issue which is weird since the README said the minimum version that the plugin is compatible with is v0.7.

roy-law commented 3 months ago

@flowrean-marcus upgrading to the latest neovim works for me! Thanks