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

Go to definition/follow symbol under cursor opens definition in a wrong project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 9.0.1
    • Qt Creator 6.0.2, Qt Creator 7.0.2
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11
    • 0f202ea724 (qt-creator/qt-creator/9.0) 0f202ea724 (qt-creator/qt-creator/master)

    Description

      Preconditions:

      Two C++ projects open (QBS and CMake). Both projects contain classes with identical names and interfaces but not exactly identical implementations. User migrates the implementation from the QBS to the CMake project making some project-specific changes.

      Steps to reproduce:

      Navigate to the header file of the CMake project, select a method and press F2 or Shift+F2 (Follow Symbol Under Cursor or Switch Between Function Declaration/Definition, respectively).

      Observed behavior:

      Qt Creator always opens definition (a cpp file) of the QBS project, no matter in which header file the declaration was selected.

      Expected behavior:

      Qt Creator navigates to the definition of the function in the cpp file of same project the header file belongs to.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            rnovikov_mb Roman Novikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes