Skip to content

autopep8 formatting , creating a new file/folder becomes hang and even debugger becomes slow on mac m1 #17425

@grimmerk

Description

@grimmerk

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.languageServer setting: 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:

  1. Fresh install a new VSCode.
  2. Install Python extension.
  3. Install autopep8 package.
  4. Enable format on save.
  5. Set Python formatting provider as autopep8
  6. Create an empty python file, named a.py
  7. Save
  8. 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 (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

No logs

Metadata

Metadata

Assignees

Labels

area-editor-*User-facing catch-allarea-formattingbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions