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 loads very slowly: unresponsive

See original GitHub issue

Environment data

  • VS Code version: 1.55.2
  • Extension version (available under the Extensions sidebar): v2021.3.680753044
  • OS and version: Mac 11.2.3
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: maybe Jupyter, v2021.5.745244803
  • Value of the python.languageServer setting: "python.languageServer": "Pylance"

Expected behaviour

Very quick environment loading, no significant delays reported in the logs of the CPU profile (see below).

Actual behaviour

Such a long delay that I often see the pop up window saying that it is taking a long time to evaluate my environment.

Also, a log file is auto-generated showing that the python extension is often unresponsive. The log file is attached. ms-python.python-unresponsive.cpuprofile.txt

Steps to reproduce:

  1. Launch VS Code with the extension installed.

Note: I also have the following Python-adjacent extensions installed:

Logs

They are too large to paste, provided in file:

ms-python.python-unresponsive.cpuprofile.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, May 4, 2021

@lazarillo You can roll back to previous released version from the extension tab. It will give you a list of versions you can roll back to. image

To safely install insiders (automatically), you could set this: image You can choose weekly or daily.

This step essentially does the same thing as installing from https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix . You can manually install it by using the VSIX file and “Install from VSIX” option that can be found here: image

At any point to get off on the insiders, you can turn the above setting off. Or uninstall extension and install from the market place.

1reaction
karthiknadigcommented, Apr 14, 2021

@lazarillo Please try insiders version of the extension, and see if it helps with this issue. You can always download and install latest insiders build form here https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix .

If you continue to have this issue with insiders version as well, then please share the contents of the Output > Python panel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Extension loading issues : r/vscode - Reddit
Please have a look at this issue: Python extension loads very slowly: unresponsive. Try insiders version of the extension, ...
Read more >
jupyter notebook takes forever to open and then pages ...
For me, I am experiencing serious slowness when working with Jupyter Notebook in Chrome. For instance, Edge browser is fine. Maybe I have...
Read more >
Here's How to Make VSCode Faster
Check for slow-starting extensions​​ To open the Command Palette, use the shortcut for your platform: Windows: Ctrl + Shift + P.
Read more >
Python extension slow to load or doesn't load?
When I start a course and click on a Python code module, sometime it takes 5-10 minutes for the Python extension to load...
Read more >
Changelog — Python 3.11.1 documentation
gh-98740: Fix internal error in the re module which in very rare circumstances ... means that standard extension modules are in the executable's...
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