You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right after startup, jedi fails with the following error message (replacing \n by actual line breaks and my home dir by ~ for readability / shorter line length):
[ERROR][2024-02-06 10:50:30] .../vim/lsp/rpc.lua:31 "rpc" "~/.local/share/nvim/mason/bin/jedi-language-server" "stderr" "Traceback (most recent call last):
File \"~/.local/share/nvim/mason/bin/jedi-language-server\", line 5, in <module>
from jedi_language_server.cli import cli
File \"~/.local/share/nvim/mason/packages/jedi-language-server/venv/lib/python3.8/site-packages/jedi_language_server/cli.py\", line 8, in <module>
from .server import SERVER
File \"~/.local/share/nvim/mason/packages/jedi-language-server/venv/lib/python3.8/site-packages/jedi_language_server/server.py\", line 68, in <module>
from pygls.protocol import LanguageServerProtocol, lsp_method
File \"~/.local/share/nvim/mason/packages/jedi-language-server/venv/lib/python3.8/site-packages/pygls/protocol/__init__.py\", line 14, in <module>
from pygls.protocol.language_server import LanguageServerProtocol, lsp_method
File \"~/.local/share/nvim/mason/packages/jedi-language-server/venv/lib/python3.8/site-packages/pygls/protocol/language_server.py\", line 64, in <module>
from lsprotocol.types import (
ImportError: cannot import name 'TraceValues' from 'lsprotocol.types' (~/.local/share/nvim/mason/packages/jedi-language-server/venv/lib/python3.8/site-packages/lsprotocol/types.py)
"
How can I fix this? How can I further debug this? Is anything wrong with my config? It feels that missing imports are likely an oversight during packaging.
The text was updated successfully, but these errors were encountered:
I had the same issue but was able to resolve it manually. The problem was that lsprotocol pre-release version 2024.0.0a1 was installed. Removing that version and installing the current version 2023.0.1 made the problem go away:
I'm using jedi-language-server with neovim's nvchad config. The relevant configuration is:
jedi-language-server is installed using mason.
Right after startup, jedi fails with the following error message (replacing
\n
by actual line breaks and my home dir by~
for readability / shorter line length):How can I fix this? How can I further debug this? Is anything wrong with my config? It feels that missing imports are likely an oversight during packaging.
The text was updated successfully, but these errors were encountered: