Repository navigation
Extension causes high cpu load #21014
Description
Activity
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Apr 7, 2023 Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.
Experiencing the same issues with the same versions albeit on Ubuntu 22.04. Cause high CPU load and while CPU load is high, Intellisense does not work either until the CPU utilization comes back down again.
Also having massive performance problems.
Saving files and other normal tasks takes long and block all further useful interactions. Already deactivated most of linters etc.ms-python.python-unresponsive.cpuprofile.txt
- Extension Name: python
- Extension Version: 2023.6.1
- OS Version: Manjaro
- VS Code version: 1.77.1
q-wertz Can you try out the pre-release?
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Apr 26, 2023 - removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Apr 26, 2023 Just to clarify: As soon as I deactivate the Python plugin VSCode behaves normal. Already tried to figure out if it has something to do with pytest unittests (added quite some) but didn't find any conclusions.
Can you try enabling Python and disabling Jupyter extension instead? And see if you're able to reproduce the issue. Thank you.
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on May 8, 2023 After disabling the Jupyter extension it works better.
It might be a clash of the Jupyter extension in combination with
ms-python.black-formatterand/orcharliermarsh.ruff. When more of the three are enabled I get the problems and a popup showing

even with
"notebook.formatOnSave.enabled": false,(don't understand why it is running in this case on normal .py files anyway)Hmm…
Saving files improved, but testing still does not work with all three disabled. Cannot start a single pytest parametrized test function…
Running tests…message in status bar but nothing happening and when closing VSCode a "Not responding" message appears.- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on May 9, 2023 The issue seems to be related to testing based on the CPU profile, reassigning. It would be helpful if you can upload the CPU profile again with the Python logs:
https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions
- assigned and unassigned
on Jul 21, 2023 This is also related: #21446 (comment),
seems like.pycfile pattern should be excluded.- added a commit that references this issue
on Aug 2, 2023 This change will be out on vscode insiders tomorrow if you want to give it a chance and see if it improves your experience! Thanks
Reacted by q-wertz- locked as resolved and limited conversation to collaborators
on Sep 2, 2023



Performancepython2023.6.0Darwin x64 20.6.01.77.1ms-python.python-unresponsive.cpuprofile.txt