-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop in the Intellisense process #1294
Comments
Thank you for the report. I am able to duplicate this. The IntelliSense process is stuck in an infinite loop and the Extension process is waiting for the IntelliSense process to respond to a shutdown request (which it won't because it's stuck). That said, I was able to get it working by adding |
I confirm that this workaround works for me as well. |
I have the same issue but the suggested workaround did not work. |
Well, even if this workaround works for this particular code it does not work for my code project. Is there any other ways to make intellisense from taking 100% cpu for each opened file (each creates its own thread) that totally hangs the operting system ( 4.15.1-2-ARCH # 1 SMP x86_64 GNU/Linux) The only solution for me and my team-mates was to do run it with 'nice 20 code'. At least I am able to move my mouse when this happens. |
@0x00deaf You can set the intelliSenseEngine to "Tag Parser" to disable the IntelliSense process until we can get the infinite processing fixed. 0.16.0 is going to add a compilerPath option and set the compiler defines correctly (and maybe a language version option) which may fix the issue if it's caused by incorrect flags/defines being passed to our parser. But if it's still not fixed, we may need to find a repro or get a call stack. |
This appears to have been addressed. Using the repo steps, I see the IntelliSense process complete an initial pass and settle down quickly. On close, everything shuts down. |
Steps to reproduce:
git clone https://github.com/python/cpython
cd cpython
code .
Problem
The following process runs in the background with 100% CPU usage:
There is also the following process:
All those processes stay alive after exiting VS Code. I have to kill
Microsoft.VSCode.CPP.IntelliSense.Msvc.linux
manually to terminate it. When I do not kill it seems to run for ever (I waited at least 20 min) and it was still running with 100% CPU.Environment:
I created a new
testuser
account and installed no other extension besidesvscode-cpp-tools
. My settings.json is empty. I tried to use:instead but does not seem to fix the problem.
Here is the output of the log of the C/C++ extension:
The text was updated successfully, but these errors were encountered: