Repository navigation
C/C++ Configurations Warnings window steals focus every 2 seconds #6308
Description
Activity
Colen Garoutte-Carson (@Colengms) pretty sure this is from #6180
Colengms commented
on Oct 14, 2020 ContributorMore actionsI can definitely fix the focus stealing. The number of errors appears to be due to attempting to probe the compiler for each of the entries in your
compile_commands.json. Normally, it should only probe once per compiler path + relevant args, but it looks like that isn't handled correctly on failure. We should be able to fix that too. You could also setcompilerPathin yourc_cpp_properties.jsonto override the compiler path found incompile_commands.json. Or, if there isn't an equivalent compiler that we can successfully probe, you could setcompilerPathto a blank string""to prevent compiler probing entirely.- addedinsidersCurrently only repros with our latest Insiders release.Currently only repros with our latest Insiders release.regressionA bug that didn't exist in a previous releaseA bug that didn't exist in a previous release
on Oct 14, 2020 Colengms commented
on Oct 14, 2020 ContributorMore actionsA fix for the focus stealing will be available in the next insiders. Using this issue to track that. The issue with probing the compiler excessively is a more difficult problem. Currently only gcc, clang, and related/derived compilers can be probed. (cl.exe doesn't count. We don't need to probe it). We know what args are relevant for those compilers, and can restrict probing to only when relevant args differ. However, we don't know anything about gomacc.exe, and are likely not going to understand it's output when probing it. In that case, I would suggest setting
compilerPathto""to prevent probing of compilers from your compile_commands.json.- addedfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
on Oct 14, 2020 sean-mcmanus commented
on Oct 16, 2020 ContributorMore actionsFixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.1.0-insiders2 (the Configuration Warnings should only appear once per session).
- locked and limited conversation to collaborators
on Nov 30, 2020
I updated the extension today and now have lost all intellisense and ability to use vscode without disabling the extension. Every 2 seconds, the C/C++ Configuraitons Warnings log shows the output window, an "new" (same as the last million) error. I tried to remove logging via the other c/c++ logging settings and that did not help.