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

git: Cannot jump to code from some diffs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • Qt Creator 5.0.2, Qt Creator 6.0.0-beta1
    • Ubuntu 20.04 LTS

    Description

      1. Have a checkout of qtbase.git.
      2. Open a file from qtbase in Creator.
        This is just to point Creator to this repository.
      3. From the menu, open "Tools" -> "Git" -> "Actions on Commits...".
      4. Paste "f5a58cccc2dad567ddda2fe621f21352781852f0" into the "Change" edit.
      5. Click "Show".
        You'll the diff of that change. It doesn't matter whether you use the unified or side-by-side view.
      6. Double click on any of the lines in the diff. It doesn't matter whether the line is an actual difference or a line of context.
        A code editor will open showing you the respective line of code.
      7. From the menu, open "Tools" -> "Git" -> "Actions on Commits..." again.
      8. Paste "6961d46b6e07fc9492c31e5bd8b98660fd65e4e6" into the "Change" edit.
      9. Click "Show".
      10. Double click on any of the lines in the diff.
        Nothing will happen.

      The lines added in the second diff have been removed in the meantime. Still, Creator could jump to the region of code where they were. The context lines did not change at all, so I don't see why Creator cannot jump to those.

      Attachments

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

        Activity

          People

            orgads Orgad Shaneh
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes