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 locks up VSCode during startup

See original GitHub issue

Environment data

  • VS Code version:
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:22.494Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-59-generic
  • Extension version (available under the Extensions sidebar): 2020.5.86806
  • OS and version: Ubuntu 18.04.4
  • Python version (& distribution if applicable, e.g. Anaconda): OS has Python 2.7.17 and 3.6.9. I’ve also got 3.5.9, 3.7.7 and 3.8.3 installed via the deadsnakes PPA
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): OS Python, virtualenv (via mkvirtualenv)
  • Jedi or Language Server? "python.jediEnabled": true
  • Value of the python.languageServer setting: Microsoft

Expected behaviour

Initial startup of the Python extension is essentially a background activity.

Actual behaviour

Initial startup of the Python extension locks up VSCode and creates sufficient load that other programs slow down.

This is only noticeable on the first startup of the extension after a reboot or a long period of inactivity. Just restarting VSCode doesn’t reproduce this.

Steps to reproduce:

  1. start VSCode
  2. open any Python file
  3. try to click around within that file while the Python extension is starting up

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Jun 17, 2020

We are refactoring the entire python discovery process. We plan on addressing several issues with respect to performance and discovering python interpreters. One of the things we plan on doing is avoid blocking extension load on discovering interpreters.

0reactions
karthiknadigcommented, Oct 18, 2021

With the latest release this should now behave better. We have a new discovery system that was in experiment for a while and is now live.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode freezing upon startup - Stack Overflow
VSCode is freezing upon starting in CentOS 7 (Linux smcr-centos7-x64-vm0 3.10.0-1160.25.1.el7.x86_64) when I install/use any version newer ...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
To troubleshoot Integrated Terminal launch failures in Visual Studio Code, follow these steps to diagnose issues: Check your user settings.
Read more >
Running Visual Studio Code on Raspberry Pi OS
Open the VS Code argv.json file using the Preferences: Configure Runtime Arguments command. · Set "disable-hardware-acceleration": true . · Restart VS Code.
Read more >
September 2021 (version 1.61) - Visual Studio Code
Locked editor groups - Select editor types to automatically lock in an editor ... workspaces without a launch.json configuration file, the Python extension...
Read more >
November 2020 (version 1.52) - Visual Studio Code
New extension bisect feature - Troubleshoot which extensions are causing issues ... In order to not block startup for too long, VS Code...
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