microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.47k stars 451 forks source link

GCC warnings don't go away until manual recompile #1899

Open sweetgiorni opened 3 years ago

sweetgiorni commented 3 years ago

Brief Issue Summary

I'm not sure if this is an issue with CMake Tools or cpptools, or if it's a bug at all, but GCC warnings reported by the CMake Tools output parser don't go away until I manually recompile through CMake Tools. The error reporting by cpptools works as I type, but it seems like that's just for hard syntax errors, not warnings.

Expected:

  1. Fix problem reported by GCC warning
  2. Save file
  3. Automatic recompile occurs, removing the squiggle and the entry in the problems pane

Apparent Behavior:

  1. Fix problem reported by GCC warning
  2. Save file
  3. Nothing happens
  4. Run the "build target" action
  5. Squiggle and warning goes away

CMake Tools Log

There isn't any activity after saving a file, so I don't think there are relevant logs

Platform and Versions

andreeis commented 3 years ago

Thank you for opening this report. We may not be able to fix this behavior exactly since it is controlled by VSCode but we will brainstorm for possible solutions and workarounds.

Gxinhu commented 2 years ago

any updates? This problem also bothered me for a long time.

github-actions[bot] commented 10 months ago

This issue is now marked as 'stale-old' due to there being no activity on it for the past 720 days. Unless the 'stale-old' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the 'stale-exempt' label.