Closed Skaytacium closed 1 year ago
I am getting the same error since today afternoon.
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/lsp.lua:1308: RPC[Error] code_name = InternalError, message = "AttributeError: 'Workspace' object has no attribute '_root_path'" data = "{'traceback': [' File \ "/home/lavish/.local/lib/python3.11/site-packages/pygls/protocol.py\", line 400, in _handle_request\\n self._execute_request(msg_id, handler, params)\\n', ' File \"/home/lavish/.local/lib/python3.11/site-packages/pygls/protocol.py\" , line 322, in _execute_request\\n self._send_response(msg_id, handler(params))\\n ^^^^^^^^^^^^^^^\\n', ' File \"/home/lavish/.local/lib/python3.11/site-packages/pygls/protocol.py\", line 137, in decor ator\\n ret_val = base_func(self, *args, **kwargs)\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n', ' File \"/home/lavish/.local/lib/python3.11/site-packages/jedi_language_server/server.py\", line 149, in lsp_initialize\\n i f server.workspace.root_path\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\\n', ' File \"/home/lavish/.local/lib/python3.11/site-packages/pygls/workspace/workspace.py\", line 224, in root_path\\n return self._root_path\\n ^^^^^^^^^^ ^^^^^\\n']}" stack traceback: [C]: in function 'assert' /usr/share/nvim/runtime/lua/vim/lsp.lua:1308: in function '' vim/_editor.lua: in function <vim/_editor.lua:0>
I've raised upstream
I believe this has been resolved with the latest pygls release!
Information
neovim version: 0.9.2 jedi-language-server version: 0.41.1 LuaJIT version: 2.1.0 python version: 3.11.5 OS: Void Linux x86-64 5.19.17_1 glibc
Error message:
relevant neovim lsp configuration:
installed plugins:
Expected behavior
The LSP server shouldn't error out and work with my autocomplete and there is no root directory, it is a single file.
Actual behavior
LSP server errors out as soon as the file is opened.