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

Issue count in the Issues button is misleading

    XMLWordPrintable

Details

    • 163d5c5ce87b4ac7dcdb7dab001538a5240ab6ef (qt-creator/qt-creator/master) 6f8cbb6fd296f62fcbe369eeb742457417ed49d0 (qt-creator/qt-creator/4.10)

    Description

      Consider the example C++ code:

      enum Test { A, B, C } test=A;
      int main()
      {
          switch(test)
          {
          case A:
          case B: ;
          }
      }
      

      When compiled with <pre>-Wall</pre>, it emits two lines, one of which is context, and the other is actual warning. QtCreator shows both lines in the Issues list, the warning one has "!" in a triangle.

      But the button which opens the Issues list looks like "1 Issues(2)". It appears that the circled "2" there means number of lines. But when you look at the button with the Issue list closed, it's easy to start thinking that there are two issues while actually there's only one — the warning emitted. This becomes even harder to understand when the issue reported is nested in several headers, for each of which the compiler emits additional line of context before saying "warning:". Then you have lots of lines even when there are few warnings/errors.

      It seems the "1 Issues" button should show number of issues (warnings or errors), not lines of compiler output.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-18490
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            10110111 Ruslan Kabatsayev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes