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

How to update the language server to the latest stable version #3977

Closed
brettcannon opened this issue Jan 14, 2019 · 1 comment
Closed

How to update the language server to the latest stable version #3977

brettcannon opened this issue Jan 14, 2019 · 1 comment
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. meta Issue that is tracking an overall project needs PR Ready to be worked on

Comments

@brettcannon
Copy link
Member

brettcannon commented Jan 14, 2019

Turning on the language server

In your settings.json, set "python.languageServer": "Microsoft". You will then be prompted to restart VS Code. If you have not downloaded the language server before then that will be triggered when you trigger the extension by opening a Python file.

Issues directly related to the language server -- e.g. completions -- should be reported to the Microsoft/python-language-server issue tracker.

Checking whether you have the latest stable version

You can check what version of the language server you are using by looking at the Output Panel's Python output:

image

The languageServerVersion in our package.json always specifies the latest stable release version.

Installing the latest stable version

  1. Run the Extensions: Open Extensions Folder command
    image
  2. Quit VS Code
  3. Open the folder containing the Python extension (name should have a prefix of ms-python.python)
    image
  4. Delete the folder containing the language server (has a prefix of languageServer)
    image
  5. Launch VS Code
  6. Open a Python file
  7. Wait for the language server to download and be unpacked
    image

You can check the Output panel to double-check you are using the latest version (see above for a screenshot of what the panel looks like).

Installing the beta version

If you want to try out what is coming, you can try the beta version of the language server by setting "python.analysis.downloadChannel": "beta" (note that the setting isn't documented, so don't be alarmed if VS Code flags it as not existing). Do note that this will not re-download the language server immediately, so if you want to update immediately you will need to follow the instructions above on how to delete your current installation of the language server.

As with anything that is beta, no guarantees of stability or quality can be made. If issues are found then please report them on the Microsoft/python-language-server issue tracker.

@brettcannon brettcannon added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. meta Issue that is tracking an overall project labels Jan 14, 2019
@brettcannon brettcannon pinned this issue Jan 14, 2019
@microsoft microsoft locked and limited conversation to collaborators Jan 15, 2019
@microsoft microsoft deleted a comment from damienstanton Jan 15, 2019
@microsoft microsoft deleted a comment from DonJayamanne Jan 15, 2019
@microsoft microsoft deleted a comment from damienstanton Jan 15, 2019
@microsoft microsoft deleted a comment from DonJayamanne Jan 15, 2019
@DonJayamanne DonJayamanne unpinned this issue Jan 28, 2019
@brettcannon brettcannon pinned this issue Feb 25, 2019
@brettcannon brettcannon unpinned this issue Jul 23, 2020
@karrtikr karrtikr added the needs PR Ready to be worked on label Aug 9, 2022
@luabud
Copy link
Member

luabud commented Aug 19, 2022

Closing as stale.

@luabud luabud closed this as completed Aug 19, 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. meta Issue that is tracking an overall project needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

3 participants