-
Notifications
You must be signed in to change notification settings - Fork 133
High CPU usage when using python.autoComplete.extraPaths on VS Code #431
Comments
I've noticed some weird behaviour. I've set up "python.analysis.logLevel": "Trace" along with "python.analysis.openFilesOnly": true. After I do any changes and save the changes in opened file, the code analysis is triggered for whole workspace folder, is this correct behaviour? See the log bellow:
(I've changed the name of python file to Can someone eligible confirm if it's correct behaviour or not? Thank you very much. |
Currently, the analyzer isn't smart enough to know exactly what all needs to be reanalyzed when something changes, so it may go over unrelated files to make its analysis up to date. Improving this behavior such that we know exactly which files should be reanalyzed on a file change is a work in progress item (#432, #435). |
This should no longer be happening since there is no looping analysis. |
@MikhailArkhipov I'm still seeing this in 1.33.0 and the python extension 2019.3.6558 on OS X |
Not necessarily same underlying problem. Please open separate issue, tell us what version of the language server (displayed at startup) since it is not connected to extension or VS Code version and what packages are being imported and how long did the analysis take (if it completed). Thanks. |
I didn't install this separately or anything, I assume this just comes with the (As an aside for anyone reading: turns out I had disabled "jedi" which in turn enables the python language server - turning jedi back on made everything work without cpu spiking..) |
microsoft/vscode-python#2838
The use of
"python.autoComplete.extraPaths"
seems to be common with the last two posts.The text was updated successfully, but these errors were encountered: