question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Disable automatically updating Microsoft Python Language Server

See original GitHub issue

https://github.com/microsoft/vscode-python/blob/61b179b2092050709e3c373a6738abad8ce581c4/src/client/activation/common/languageServerFolderService.ts#L65

Environment data

  • VS Code version: visual-studio-code-bin 1.45.0-1
  • Extension version (available under the Extensions sidebar): 2020.5.78807
  • OS and version: x86_64 Linux 5.6.11-1-MANJARO
  • Python version (& distribution if applicable, e.g. Anaconda): Python3.8.2
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): Language Server
  • Value of the python.languageServer setting: ‘Microsoft’

Expected behaviour

I have set this config, but not working.

"python.autoUpdateLanguageServer": false,

Actual behaviour

still auto-downloading Microsoft python language server, and very slowly in China.

when downloading, autocomplete doesn’t work.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'WebHostNotebook - control'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - control'
> conda --version
> conda info --json
> pyenv root
> python3.7 ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> ~/env/bin/python ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> ~/env/bin/python ~/.vscode/extensions/ms-python.python-2020.5.78807/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
Python interpreter path: /sbin/python
Starting Microsoft Python language server.


Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

[Extension Host] Info Python Extension: 2020-05-13 21:41:51: Listing Nuget Packages, Class name = d, completed in 7256ms, has a truthy return value, Arg 1: "https://pvsc.blob.core.windows.net", Arg 2: "python-language-server-stable", Arg 3: "Python-Language-Server-linux-x64", Arg 4: "https://pvsc.azureedge.net", Arg 5: <Uri:/home/me/.config/Code/User/settings.json>, Return Value: [{"package":"Python-Language-Server-linux-x64.0.1.80.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.1.80.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.1.80","major":0,"minor":1,"patch":80,"prerelease":[],"build":[],"version":"0.1.80"}},{"package":"Python-Language-Server-linux-x64.0.2.96.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.2.96.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.2.96","major":0,"minor":2,"patch":96,"prerelease":[],"build":[],"version":"0.2.96"}},{"package":"Python-Language-Server-linux-x64.0.3.76.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.3.76.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.3.76","major":0,"minor":3,"patch":76,"prerelease":[],"build":[],"version":"0.3.76"}},{"package":"Python-Language-Server-linux-x64.0.4.127.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.4.127.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.4.127","major":0,"minor":4,"patch":127,"prerelease":[],"build":[],"version":"0.4.127"}},{"package":"Python-Language-Server-linux-x64.0.5.10.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.10.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.10","major":0,"minor":5,"patch":10,"prerelease":[],"build":[],"version":"0.5.10"}},{"package":"Python-Language-Server-linux-x64.0.5.30.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.30.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.30","major":0,"minor":5,"patch":30,"prerelease":[],"build":[],"version":"0.5.30"}},{"package":"Python-Language-Server-linux-x64.0.5.31.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.31.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.31","major":0,"minor":5,"patch":31,"prerelease":[],"build":[],"version":"0.5.31"}},{"package":"Python-Language-Server-linux-x64.0.5.45.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.45.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.45","major":0,"minor":5,"patch":45,"prerelease":[],"build":[],"version":"0.5.45"}}]
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:51: Get latest language server nuget package version, Class name = d, completed in 7258ms, has a truthy return value, Arg 1: <Uri:/home/me/.config/Code/User/settings.json>, Arg 2: "0.5.30", Return Value: {"package":"Python-Language-Server-linux-x64.0.5.45.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.45.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.45","major":0,"minor":5,"patch":45,"prerelease":[],"build":[],"version":"0.5.45"}}
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:51: Get latest version of Language Server, Class name = f, completed in 7258ms, has a truthy return value, Arg 1: <Uri:/home/me/.config/Code/User/settings.json>, Return Value: {"package":"Python-Language-Server-linux-x64.0.5.45.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.45.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.45","major":0,"minor":5,"patch":45,"prerelease":[],"build":[],"version":"0.5.45"}}
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:51: Get language server folder name, Class name = f, completed in 7273ms, has a truthy return value, Arg 1: <Uri:/home/me/.config/Code/User/settings.json>, Return Value: "languageServer.0.5.45"
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:51: Listing packages for stable for Python-Language-Server-linux-x64
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:55: Listing Nuget Packages, Class name = d, completed in 3692ms, has a truthy return value, Arg 1: "https://pvsc.blob.core.windows.net", Arg 2: "python-language-server-stable", Arg 3: "Python-Language-Server-linux-x64", Arg 4: "https://pvsc.azureedge.net", Arg 5: <Uri:/home/me/.config/Code/User/settings.json>, Return Value: [{"package":"Python-Language-Server-linux-x64.0.1.80.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.1.80.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.1.80","major":0,"minor":1,"patch":80,"prerelease":[],"build":[],"version":"0.1.80"}},{"package":"Python-Language-Server-linux-x64.0.2.96.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.2.96.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.2.96","major":0,"minor":2,"patch":96,"prerelease":[],"build":[],"version":"0.2.96"}},{"package":"Python-Language-Server-linux-x64.0.3.76.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.3.76.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.3.76","major":0,"minor":3,"patch":76,"prerelease":[],"build":[],"version":"0.3.76"}},{"package":"Python-Language-Server-linux-x64.0.4.127.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.4.127.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.4.127","major":0,"minor":4,"patch":127,"prerelease":[],"build":[],"version":"0.4.127"}},{"package":"Python-Language-Server-linux-x64.0.5.10.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.10.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.10","major":0,"minor":5,"patch":10,"prerelease":[],"build":[],"version":"0.5.10"}},{"package":"Python-Language-Server-linux-x64.0.5.30.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.30.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.30","major":0,"minor":5,"patch":30,"prerelease":[],"build":[],"version":"0.5.30"}},{"package":"Python-Language-Server-linux-x64.0.5.31.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.31.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.31","major":0,"minor":5,"patch":31,"prerelease":[],"build":[],"version":"0.5.31"}},{"package":"Python-Language-Server-linux-x64.0.5.45.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.45.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.45","major":0,"minor":5,"patch":45,"prerelease":[],"build":[],"version":"0.5.45"}}]
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:55: Get latest language server nuget package version, Class name = d, completed in 3693ms, has a truthy return value, Arg 1: <Uri:/home/me/.config/Code/User/settings.json>, Arg 2: "0.5.30", Return Value: {"package":"Python-Language-Server-linux-x64.0.5.45.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.45.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.45","major":0,"minor":5,"patch":45,"prerelease":[],"build":[],"version":"0.5.45"}}
workbench.desktop.main.js:sourcemap:259 [Extension Host] Info Python Extension: 2020-05-13 21:41:55: Get latest version of Language Server, Class name = f, completed in 3693ms, has a truthy return value, Arg 1: <Uri:/home/me/.config/Code/User/settings.json>, Return Value: {"package":"Python-Language-Server-linux-x64.0.5.45.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x64.0.5.45.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.5.45","major":0,"minor":5,"patch":45,"prerelease":[],"build":[],"version":"0.5.45"}}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
patrick-fucommented, Jun 20, 2020

Same problem Screenshot2020-06-20 16 56 02

1reaction
jakebaileycommented, Jul 24, 2020

If the option to disable downloading doesn’t work, then that’s a bug, yeah.

But given we aren’t putting out many releases of MPLS anymore, the only downloading that should occur would be updates due to extension updates, because MPLS is stored there and not the global extension storage, so gets deleted and needs a redownload. I haven’t looked at this code to know what the expected behavior is when there is no LS because it’s been deleted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Settings Reference for Python - Visual Studio Code
Python settings reference. The Python Extension for Visual Studio Code is highly configurable. This page describes the key settings you can work with....
Read more >
How to disable VS Code Auto Update - The Windows Club
1] Stop Auto Update from Settings · Open Visual Studio Code. · Click the cog button to go to settings. · Search “Update”...
Read more >
Python in Visual Studio Code – September 2021 Release
You can disable that functionality by changing the “python. testing. autoTestDiscoverOnSaveEnabled” setting to “false”.
Read more >
Options and settings for Python - Visual Studio (Windows)
To view Python options, use the Tools > Options menu command, make sure Show all settings is selected, and then navigate to Python:....
Read more >
Known issues for Python and R - SQL Server Machine ...
Disable FIPS before the installation of SQL Server 2019 (15.x) with the feature Machine Learning Services and Language Extensions or upgrade ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found