Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2022 does not refresh Error List Warnings

Using latest VS2022 preview (but have this also on stable) C++ (VC17)

What I often get is that I build or rebuild, then get some warnings in

  • the editor (green wriggly line)
  • the output window
  • the Error list window under "warnings"

I then fix a warning in the editor, but now

  • editor ok (green wriggly line gone)
  • output window correctly does not show the warning anymore
  • Error list / Warnings still show it :( it seems to now be out of sync with the editor

The only way I can then refresh the warnings in the Error List is to unload+reload the solution which is not workable

Any help ?

  • but even though the blue it does not disappear
like image 594
kofifus Avatar asked Sep 14 '25 01:09

kofifus


2 Answers

To temporarily resolve this intermittent behavior, consider deleting .vs hidden sub-folder in the same folder as the solution when the solution is closed.

I believe that gunk in internal database resulting from VS upgrades, as well as from crashes with disk cache turned on cause a whole bunch of this unhappy user experience.

On modern SSD/NVMe drives, try disabling the write cache in the device manager. It might provide good prevention, yet without imposing undue performance hit. Test, test, and test again, my friend.

like image 135
GregC Avatar answered Sep 15 '25 14:09

GregC


In my case the error list is refreshed, when new build is occured. I discovered there is an error list setting, which determines what error must be displayed:

enter image description here

When you choose 'Build + IntelliSense' the problem will solved. The errors list are refreshing immediately.

However the IntelliSense error in some very rare cases are different then the real build errors, usually the IntelliSense reports something as error, but the builds can handle it.

like image 20
György Gulyás Avatar answered Sep 15 '25 16:09

György Gulyás