-
Notifications
You must be signed in to change notification settings - Fork 133
"Analyzing in background" forever #946
Comments
Looks like similar to #943 |
@MikhailArkhipov It seems that you are right. The main difference is that owner of ticket #943 states that the problem is non repeatable. For me, the problem happens every time. |
This is not the same as #943, as far as I can tell, because I'm seeing the "analyzing in background" forever while I can see that the LSP process is still running in Task Manager, with 0% CPU. |
There are three issues here. First is the exception (which is being fixed in #947). Second, the stale message - the analysis either finished or the exception caused it to terminate and progress message has never been updated or removed. This is confirmed that LS process is running with 0% CPU which means it is done. LS process always runs as long as VS Code has some Python file opened. Third, is the analysis taking long time. This is not a single issue and various optimizations are being added or considered in other issues. Some libraries consist or thousands of files and since Python is typeless language and stubs are not very common, evaluation of the code flow has to be performed. If CPU is at 0% and tooltips/completions are available then the analysis is done. After the exception is fixed and build published, I would recommend opening separate issue on stale message (if it still happens) and another on the speed of analysis in the particular project. Thanks! |
Please release this change in early release or stable release as soon as possible. |
This issue is two months old; the code that was merged to fix this specific issue has been released for some time now. If you are having a problem, please file an issue with the info we request in https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue. |
Hi,
Since recently, I met a problem with VSCode where upon starting the editor, the analyzer starts normally but after a few seconds, the message "Analyzing in background, 877 items left…" is stuck in the footer bar, and then nothing changes (for hours).
It also seems to me that the cpu usage is not enormous but still quite high compared to before this was an issue, around 35 ~ 40%.
Here is the code of the django project that triggers the issue, but I have the exact same problem with other django projects as well.
Vscode version :
Python extension version : 2019.3.6558
LS version : 0.2.53.0
In my settings:
Also, there is an unhandled exception in the Python output log:
Please let me know if you need anymore details.
The text was updated successfully, but these errors were encountered: