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.

Python extension hangs on loading

See original GitHub issue

Environment 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]

  1. 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 (ViewOutput, 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:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
debadamcommented, Jul 1, 2021

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.

0reactions
AdamCummickcommented, Jul 1, 2021

@debadam Thank you so much, that fixed it!

Read more comments on GitHub >

github_iconTop 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 >

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