Trying to run the jedi language server with neovim 0.5, returns:
--E5108: Error executing lua /usr/local/share/nvim/runtime/lua/vim/lsp.lua:97: filename: expected string, got nil
...
/usr/local/share/nvim/runtime/lua/vim/lsp.lua:644: in function 'start_client'
...
pack/paqs/start/nvim-lspconfig/lua/lspconfig/configs.lua:220: in function 'try_add'
the same issue occurs with python-language-server and pylsp (jedi-vim fails silently), but not with rust-analyzer, which is the only other LSP I’ve tried so far.
Additional details: Error only occurs when actually loading a python file (start_client). I’m using the Paq package manager (as in the error message), but the code that triggers the error is from nvim-lspconfig. The apparently empty string is:
local pseudo_root = util.path.dirname(api.nvim_buf_get_name(0))
But that seems to be populated if I print it.
on utils.lua, we then find that if the file is a single file, it deliberately repopulates the passed parameter with NULL and then sends that to the setup function. ???