When executing :lua require("idris2.metavars").request_all(), the following error appears:
Error executing vim.schedule lua callback: vim/shared.lua:0: Expected table, got nil
stack traceback:
[C]: in function 'assert'
vim/shared.lua: in function 'tbl_isempty'
...te/pack/packer/start/idris2-nvim/lua/idris2/metavars.lua:77: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:995: in function ''
vim.lua: in function <vim.lua:0>
What
When executing
:lua require("idris2.metavars").request_all()
, the following error appears:Why?
I think this is a bug in this check:
https://github.com/ShinKage/idris2-nvim/blob/be1cd749df1da85834eab51ed6df59b4b1a62a33/lua/idris2/metavars.lua#L76-L77
The argument
result
might benil
(see:help lsp-handler
), so the call totbl_isempty
fails.Installed software
Neovim: