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

Synchronize with Editor only works for .cpp/.h files in Projects View (regression)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 13.0.1
    • None

      When navigating to a .qml, .js or any other file except .cpp and .h files, the Project View doesn't find and select the corresponding file.

      Even when using the Project View itself to navigate to a .qml file by double clicking, the file is immediately deselected (not highlighted).

      This seems to have been recently broken.

      How to reproduce:

      1. Create a new QML project.
      2. Ensure that "synchronize with editor" is enabled in the "Projects" view.
      3. Double click on main.qml. Observe that main.qml is not selected in the projects view. This is unexpected behavior.
      4. Double click on main.cpp. Observe that main.cpp is selected, and if the project wasn't expanded (when using the documents view or another way to open the file), it is expanded now. This is the expected behavior.

        1. 2024-06-10 09-42-04.mkv
          5.47 MB
          Pieter de Goeje
        2. QtBugDemo.zip
          4 kB
          Pieter de Goeje
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            pdegoeje Pieter de Goeje
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes