Python-language-server: Downloading Python-Language-Server too slowly in China?

Created on 22 Feb 2020  ·  16Comments  ·  Source: microsoft/python-language-server

When using the python plugin "ms-python.python" in vscode,Downloading Python-Language-Server too slowly in China?

It takes at least tens of minutes to download it?

Have you considered providing a cdn download address?

Or provide a guide on how to download and install it myself.

Downloading https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-win-x64.0.5.30.nupkg...

Downloading https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.30.nupkg...
enhancement

Most helpful comment

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.

All 16 comments

I have the same problem,i could not download it

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.

Unzip to the directory under windows system.

C:\Users\yourusername\.vscode\extensions\ms-python.python-2020.2.64397\languageServer.0.5.30

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.
Thanks ,i get it

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.

Unzip to the directory under windows system.

C:\Users\yourusername\.vscode\extensions\ms-python.python-2020.2.64397\languageServer.0.5.30

Thanks for your solution.
I extracted the .nupkg to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30 but vscode says:

[Error - 0:00:00 PM] Starting client failed
Launching server using command /Users/USERNAME/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30/Microsoft.Python.LanguageServer failed.

It's a MacOS Catalina 10.15.3 with vscode 1.14.2, and the file does exist. Is there anything that I missed?
Thanks!

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.

Unzip to the directory under windows system.
C:\Users\yourusername\.vscode\extensions\ms-python.python-2020.2.64397\languageServer.0.5.30

Thanks for your solution.
I extracted the .nupkg to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30 but vscode says:

[Error - 0:00:00 PM] Starting client failed
Launching server using command /Users/USERNAME/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30/Microsoft.Python.LanguageServer failed.

It's a MacOS Catalina 10.15.3 with vscode 1.14.2, and the file does exist. Is there anything that I missed?
Thanks!

Some problem! But my environment is Linux debian 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux and use remote server.

After download *.nupkg via Thunder, manually extract it to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

unzip Python-Language-Server-linux-x64.0.5.30.nupkg -d ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30

Note that the version of Python-Language-Server and the version of ms-python are replaced with the currently used version.

Unzip to the directory under windows system.
C:\Users\yourusername\.vscode\extensions\ms-python.python-2020.2.64397\languageServer.0.5.30

Thanks for your solution.
I extracted the .nupkg to ~/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30 but vscode says:

[Error - 0:00:00 PM] Starting client failed
Launching server using command /Users/USERNAME/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30/Microsoft.Python.LanguageServer failed.

It's a MacOS Catalina 10.15.3 with vscode 1.14.2, and the file does exist. Is there anything that I missed?
Thanks!

chmod 777 /home/yourusername/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30/Microsoft.Python.LanguageServer

@masx200 Thanks dude, thanks!

chmod a+x /home/yourusername/.vscode/extensions/ms-python.python-2020.2.64397/languageServer.0.5.30/Microsoft.Python.LanguageServer

did the trick.

I download nupkg file, but i donot know how to unzip it on window or install it

I download nupkg file, but i donot know how to unzip it on window or install it

use 7-zip to extract it

There are steps in https://github.com/microsoft/python-language-server/blob/master/CONTRIBUTING.md how to set up LS as we do for debugging. Basically

  • download nuget package
  • create folder languageServer (does not have to be versioned)
  • rename .nupkg to .zip and unzip to the folder.
  • on MacOS and Linux you need to make LS binary executable via chmod +x Microsoft.Python.LanguageServer
  • in VS Code set setting python.downloadLanguageServer to false.
  • in VS Code set setting python.jediEnabled to false.

See also https://github.com/microsoft/python-language-server/issues/1698

Closing since CDN is not LS issue. Manual installation steps are above and in https://github.com/microsoft/python-language-server/issues/1698

Was this page helpful?
0 / 5 - 0 ratings