jomiller / vscode-rtags

RTags Client for Visual Studio Code
GNU General Public License v3.0
10 stars 0 forks source link

Stale diagnostic messages remain after correcting #include errors #25

Closed jomiller closed 5 years ago

jomiller commented 5 years ago

Stale diagnostic messages for #include errors may remain in the Problems panel even after the errors have been corrected.

The issue occurs during the following sequence of events:

  1. An #include error is introduced into a file, and the file is saved and reindexed.
  2. The #include error is removed, and the file is reindexed again with --reindex --unsaved-file, but not saved again.
  3. After the indexing job has finished, updating dependencies causes the file to be reindexed yet again (because the #include error has been removed).
  4. The last saved version of the file (still containing the #include error) is used when updating dependencies.
jomiller commented 5 years ago

This issue is being addressed in https://github.com/Andersbakken/rtags/pull/1273

jomiller commented 5 years ago

The pull request was merged in https://github.com/Andersbakken/rtags/commit/ee08ead8dc638aa954e42e65ab62d040b7273114