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.

VS Code freezes and crashes when the Python extension activates on Windows

See original GitHub issue

Similar issues: #6687 #9554 #3967 #5437 #9093

Environment data

  • VS Code version: 1.49.3
  • Extension version (available under the Extensions sidebar): v2020.9.112786
  • OS and version: Windows v2004
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.0 on WSL and 3.8.6 local
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): WSL
  • Relevant/affected Python packages and their versions: –
  • Relevant/affected Python-related VS Code extensions and their versions: ms-python Python extension
  • 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 when .py file is opened or created and VS code continues to function

Actual behaviour

“Python extension loading” appears then eventually VS code freezes and crashes or disconnects me from my remote WSL environment

Steps to reproduce:

1.Open vs code 2.Open or create a .py file with the Python extension installed and enabled

Logs

When I follow these steps running vs code locally it freezes and crashes. When I run them on WSL: Ubuntu it eventually disconnects which forces me to close. I don’t see anything in the output panel before it freezes. Occasionally a new file will open called “Getting Started -Python” right before VS code freezes.

I am relatively new [to vscode and development] so if there is some output you think exists it is likely that I just don’t know how to get to it without being told.

Thank you for your help…

Andrew Noel

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andrepncommented, Oct 12, 2020

Sorry for the delay, I’ll try to get this done later today thank you.

0reactions
brettcannoncommented, Nov 17, 2020

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code freezes after short while "The window is ...
This is caused by the latest Pylance extension. You can revert to earlier Pylance extension to solve the problem. This problem will be...
Read more >
Working with Jupyter code cells in the Python Interactive window
To work with Jupyter notebooks, you must activate an Anaconda environment in VS Code, or another Python environment in which you've installed the...
Read more >
Using Python environments in VS Code
Work with Python interpreters. Select and activate an environment. By default, the Python extension looks for and uses the first Python interpreter it...
Read more >
Language Server Extension Guide - Visual Studio Code
> git clone https://github.com/microsoft/vscode-extension-samples.git > cd vscode-extension-samples/lsp-sample > npm install > npm run compile > code . The ...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
When upgrading to Windows 10, some apps may have compatibility mode turned on automatically. When this happens with VS Code, the terminal breaks...
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