Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26585

Sometimes outdated diagnostics appear out of nowhere

    XMLWordPrintable

Details

    • 3cf6d15096 (qt-creator/qt-creator/7.0) 3cf6d15096 (qt-creator/qt-creator/master) 3cf6d15096 (qt-creator/tqtc-qt-creator/7.0) 3cf6d15096 (qt-creator/tqtc-qt-creator/master) 3cf6d15096 (qt-creator/tqtc-qt-creator/qds-3.1)

    Description

      It happens rarely, but once in a while, one or more bogus diagnostics show up in the C++ editor when using the clang code model with clangd. They probably match a much older version of the file, and they definitely do not correspond to the latest diagnostics sent by the server. They must have been cached somewhere, but it's unclear where, and why they pop up all of a sudden. They even survive closing and re-opening the file.
      Two examples are attached for illustration.

      Attachments

        1. falsche-meldung-2.png
          falsche-meldung-2.png
          88 kB
        2. falsche-meldung-1.png
          falsche-meldung-1.png
          44 kB
        3. Err1.png
          Err1.png
          78 kB
        4. diag.png
          diag.png
          398 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              kandeler Christian Kandeler
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes