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

Off-by-one (line) error when showing compiler output from Issues pane

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      60a275ce6245c0d3ce71b2d63bbeefd879dfef9c (qt-creator/qt-creator/4.15)

      Description

      The following code snippet in main.cpp:

      int main()
      {
          foo();
          bar();
          return 0;
      } 

      leads to two compiler errors, which are correctly shown in the Issues pane. Jumping to the  editor line works correctly.

      However, jumping to the corresponding compile output with "Show Output" is always one line upwards (see screenshots).

      This is especially annoying for one-line compiler/linker errors, because a totally wrong output is selected.

        Attachments

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

          Activity

            People

            Assignee:
            aha_1980 André Hartmann
            Reporter:
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes