nvim-telescope / telescope-ui-select.nvim

MIT License
774 stars 18 forks source link

Code action fails with 'prerel1' (a boolean value) #46

Closed MontyTHall closed 5 months ago

MontyTHall commented 5 months ago

Ubuntu 20, nvim 0.10-dev (build from source), fresh telecope-ui-select.vim using Lazy.

image

NVIM v0.10.0-dev-508+gd3b9feccb
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Directly ":lua vim.lsp.buf.code_action()" or if I use the lsp-zero code action (which is the same thing). It fails with the following.

Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/version.lua:78: attempt to index local 'prerel1' (a boolean value)                                                                                                                                           
stack traceback:
        /usr/share/nvim/runtime/lua/vim/version.lua:78: in function 'cmp_prerel'
        /usr/share/nvim/runtime/lua/vim/version.lua:120: in function '__eq'
        /usr/share/nvim/runtime/lua/vim/version.lua:372: in function 'cmp'
        ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:32: in function <...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:23>
        ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:106: in function 'select'
        /usr/share/nvim/runtime/lua/vim/lsp/buf.lua:713: in function 'on_code_action_results'
        /usr/share/nvim/runtime/lua/vim/lsp/buf.lua:731: in function 'callback'
        /usr/share/nvim/runtime/lua/vim/lsp.lua:2155: in function 'handler'
        /usr/share/nvim/runtime/lua/vim/lsp.lua:1517: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Not sure what's going on.

MontyTHall commented 5 months ago

Problem solved. A tangential problem said their fix was not to use 0.10. I switched to 0.9.5. Now things work.