Python extension hangs on loading
See original GitHub issueEnvironment data
- VS Code version: 1.57.1
- Extension version (available under the Extensions sidebar): v2021.6.944021595
- OS and version: Windows 10 build 19042
- Python version (& distribution if applicable, e.g. Anaconda): 3.8
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
- Relevant/affected Python-related VS Code extensions and their versions: Pylance 2021.6.3
- Value of the
python.languageServer
setting: Pylance
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Python extension loads
Actual behaviour
Python extension hangs on loading indefinitely
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Open VSCode, extension begins loading and hangs immediately.
- Disabling then re-enabling extensions did not correct issue
- Uninstalling and re-installing extensions did not correct issue
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
User belongs to experiment group 'pythonaa'
User belongs to experiment group 'pythonJoinMailingListVar2'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'pythonSurveyNotificationcf'
User belongs to experiment group 'PythonPyTorchProfiler'
Python interpreter path: ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
"Python extension loading..." message lasts forever #16026
Uninstall Python extension (if you have pylance uninstall it first). · Close all instances of VS Code. · Go to, %USERPROFILE%/. · Delete...
Read more >How would I fix the issue of the python extension loading and ...
1 Answer 1 · Uninstall Python extension (if you have pylance uninstall it first). · Close all instances of VS Code. · Go...
Read more >Python Extension loading issues : r/vscode - Reddit
I'm having a problem where the python extension has a very long loading time. I've tried unistalling and reinstalling but that hasn't worked....
Read more >Crash extension modules
Loading the extension registers 'epython' command which can be used to execute Python programs. To minimize the extension size, only parts of Python...
Read more >Python in Visual Studio Code
Install Python and the Python extension. The tutorial guides you through installing Python and using the extension. You must install a Python interpreter ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could try disabling Telemetry in VScode settings. I was having the exact same behavior when trying to use the CircuitPython extension. (The microntroller gets used as a USB drive and the Python extension was hanging like you described when trying to open the python text file. And same as you mentioned, everything worked fine with the same files and folders copied to the local file system.) Same behavior with 3 different boards. I disabled telemetry and the Python extension loads OK. Re-enabled and same issue occurs again. I have no idea why this would work, and maybe it’s just something specific to my use case or system.
@debadam Thank you so much, that fixed it!