Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jedi-language-server for Python 3.11 support #20117

Closed
Tracked by #22610
sohang3112 opened this issue Oct 29, 2022 · 4 comments
Closed
Tracked by #22610

Update jedi-language-server for Python 3.11 support #20117

sohang3112 opened this issue Oct 29, 2022 · 4 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on

Comments

@sohang3112
Copy link

I recently updated to Python 3.11. The Python Language Server crashed in VS Code (which launches it automatically). It worked fine previously with Python 3.10.

According to this comment, this issue occurs due to an outdated version of jedi-language-server. Please update it to the latest version so that it works correctly with Python 3.11

@sohang3112 sohang3112 added the feature-request Request for new features or functionality label Oct 29, 2022
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 29, 2022
@evil0th
Copy link

evil0th commented Oct 31, 2022

update the requirement should fix this issue. see pydantic/pydantic#4012
I have a temporary solution:

  1. download pydantic-1.10.2 (1.10+)
  2. unzip and cd into pydantic-1.10.2
  3. copy pydantic folder to overwrite ~/.vscode/extensions/ms-python.python-2022.17.xxx/pythonFiles/lib/jedilsp/pydantic
  4. restart vscode, done!

@karthiknadig karthiknadig self-assigned this Oct 31, 2022
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. and removed feature-request Request for new features or functionality labels Oct 31, 2022
@karthiknadig
Copy link
Member

Fixed via #20134

If you want to get 3.11 support before it is released, here is what you can do:

  1. Delete the contents of ~/.vscode/extensions/ms-python.python-2022.xx.xxx/pythonFiles/lib/jedilsp
  2. Then run python -m pip install -t ~/.vscode/extensions/ms-python.python-2022.xx.xxx/pythonFiles/lib/jedilsp jedi-language-sever

@karthiknadig karthiknadig added needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Nov 2, 2022
@EvanHsieh0415
Copy link

I encountered the following error when running the command

PS C:\Users\Administrator> pip install -t ~/.vscode/extensions/ms-python.python-2022.xx.xxx/pythonFiles/lib/jedilsp jedi-language-sever
ERROR: Could not find a version that satisfies the requirement jedi-language-sever (from versions: none)
ERROR: No matching distribution found for jedi-language-sever

@EvanHsieh0415
Copy link

I encountered the following error when running the command

PS C:\Users\Administrator> pip install -t ~/.vscode/extensions/ms-python.python-2022.xx.xxx/pythonFiles/lib/jedilsp jedi-language-sever
ERROR: Could not find a version that satisfies the requirement jedi-language-sever (from versions: none)
ERROR: No matching distribution found for jedi-language-sever

Solution: run pip install -U jedi_language_server

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

4 participants