vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Endless "parsing opened files" (1.3.0 regression)

Open sean-mcmanus opened this issue 5 years ago • 23 comments

I started to experience this issue about week ago (current version was 1.3.1 for this extension). After some time since vscode starts db icon shows parsing files, then load stops. However when I start editing c++ file (simple click into it is enough), it starts "parsing opened files" and it never ends.

Now I downgraded version to 1.2.2 and there is no issue with excessive load.

It might not be related to the original issue (whole project is much bigger)

Originally posted by @kiiv-cz in https://github.com/microsoft/vscode-cpptools/issues/5574#issuecomment-823245598

sean-mcmanus avatar Apr 20 '21 18:04 sean-mcmanus

I'll try it tommorow. It's not compilable anyway on my machine (it's done in docker with mounted /wa, however I'm not using remote editing)

kiiv-cz avatar Apr 21 '21 20:04 kiiv-cz

I commented it out and it started working normally After some digging I found out 25 out of 1498 commands are containing include searching path -I/ and I suppose that is the reason why it starts indexing from /

Thanks, I'll keep this disabled

kiiv-cz avatar Apr 22 '21 07:04 kiiv-cz

Okay, I'm closing this as "by design". I've opened https://github.com/microsoft/vscode-cpptools/issues/7415 as a potential fix for -I/ causing unwanted CPU usage.

sean-mcmanus avatar Apr 23 '21 19:04 sean-mcmanus