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
{{ message }}
Repository navigation
Jedi server cannot start - AttributeError: module 'typing' has no attribute '_SpecialForm' #20606
Since recently, Jedi server fails to start. Output shows this exception:
Traceback (most recent call last):
File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/run-jedi-language-server.py", line 9, in <module>
from jedi_language_server.cli import cli
File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/jedi_language_server/cli.py", line 7, in <module>
from .server import SERVER
File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/jedi_language_server/server.py", line 14, in <module>
from pydantic import ValidationError
File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/pydantic/__init__.py", line 2, in <module>
from . import dataclasses
File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/pydantic/dataclasses.py", line 52, in <module>
from typing_extensions import dataclass_transform
File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/typing_extensions.py", line 193, in <module>
class _FinalForm(typing._SpecialForm, _root=True):
AttributeError: module 'typing' has no attribute '_SpecialForm'
[Info - 7:47:21] Connection to server got closed. Server will restart.
[Error - 7:47:21] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:47:21] Python Jedi client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
No configuration changed recently on my side AFAIK... 🤔
Extension version: 2022.20.2
VSCodium version: VSCodium 1.74.3 (f8b9aeda40058455453f1298fd606caf6ff8d675, 2023-01-10T19:39:41.226Z)
OS version: Linux x64 6.1.5-200.fc37.x86_64
Modes:
Sandboxed: No
System Info
Item
Value
CPUs
AMD Ryzen 7 5700U with Radeon Graphics (16 x 4290)
This might have been due to an outdated typing_extensions lib. I just updated the jedi-language-server, please try the pre-release that will come out tomorrow (2023.3.*)
Activity
karthiknadig commentedon Jan 31, 2023
What is the version of python that you are using?
Update to latest `jedi-language-server` (#20611)
karthiknadig commentedon Jan 31, 2023
This might have been due to an outdated
typing_extensionslib. I just updated thejedi-language-server, please try the pre-release that will come out tomorrow (2023.3.*)Merge remote-tracking branch 'upstream/main'
Merge remote-tracking branch 'upstream/main'