forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-editor-*User-facing catch-allUser-facing catch-allarea-formattingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster
Description
Environment data
Hardware: MacBook Air (M1, 2020)
- VS Code version: 1.60.1 (Universal), 1.59.1 (Universal)
- Extension version (available under the Extensions sidebar): v2021.9.1218897484, v2021.9.1230869389, v2021.10.1239554536-dev
- OS and version: macOS Big Sur 11.5.2, 11.6
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.2
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
- Relevant/affected Python packages and their versions: autopep8 1.5.7
- Relevant/affected Python-related VS Code extensions and their versions: None
- Value of the
python.languageServersetting: Pylance v2021.9.1
[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
Every action such as "creating a folder" and format the code using autopep8 should be smoothy as before.
Actual behaviour
Either creating a folder, a file or format the code using autopep8, they all hang a very long long time.
- Running 'File Create' participants... hangs
Saving 'xxx.py': Running 'Python' Formatter (configure).... hangs
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
formatter case:
- Fresh install a new VSCode.
- Install Python extension.
- Install autopep8 package.
- Enable format on save.
- Set Python formatting provider as
autopep8 - Create an empty python file, named
a.py - Save
- Hang on
Saving 'a.py': Running 'Python' Formatter (configure).
Creating a new file/folder case:
Just click new file or new folder on VSCode left panel.
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
No logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-editor-*User-facing catch-allUser-facing catch-allarea-formattingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster