-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Environment data
- VS Code version:
> code --version
1.60.1
83bd43bc519d15e50c4272c6cf5c1479df196a4d
x64- Extension version (available under the Extensions sidebar): ms-python.python@2021.9.1230869389
- OS and version:
> uname -a
Linux np 5.13.13-1-MANJARO #1 SMP PREEMPT Thu Aug 26 20:34:21 UTC 2021 x86_64 GNU/Linux- Python version (& distribution if applicable, e.g. Anaconda):
> python --version
Python 3.9.6- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Both N/A and venv
- Relevant/affected Python packages and their versions:
> code --list-extensions --show-versions
ms-python.python@2021.9.1230869389
ms-python.vscode-pylance@2021.9.1
ms-toolsai.jupyter@2021.8.2041215044
ms-toolsai.jupyter-keymap@1.0.0- Relevant/affected Python-related VS Code extensions and their versions: N/A
- Value of the
python.languageServersetting: Default / Pylance (both)
Expected behavior
- Python extension load
- venv activate
Actual behavior
- Infinite "Python extension load"
Description
As of yesterday 15/09/2021 I installed VS Code cleanly via snap and the problem described occurred.
I had only the Python extensions (and its dependencies) installed, all up to date.
While filing the issue I went back 1 version (2021.9.1218897484) in order of further testing, and the problem disappeared. Expected behavior in less than 1 sec.
I went back to current version 2021.9.1230869389 and the problem is not longer happening.
#17425 can be related.
I first noticed my problem when saving a large *.py file and it would get hanged on formatting the file, when I realized the Python extension was not loaded. It all works smoothly now.
Update
I switched between multiple directories with no problem, all working with Python. Suddenly in one of them, I noticed again that the formatter got stuck because the Python extension is loading.
Downgraded again to 2021.9.1218897484 and I've been working fine until now.