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

Kit files appear in search and replace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 11.0.2
    • Editors
    • None
    • Linux/Other display system, Windows

    Description

      When searching the project for a string, it will return results in files in the Qt directory and and allow "replace" to make changes to those files. This was found when attempting to replace the versioned cmake command "qt6_add_qml_module" with the versionless "qt_add_qml_module" within the selected project, with the intent to edit the CMakeLists.txt and *.cmake files created for the project. This resulted in it also editing the Qt6QmlMacros.cmake file in the Qt kit install, breaking the versionless macro. It created a cyclic definition as "qt_add_qml_module" normally invokes the versioned command "qt6_add_qml_module", but the call to the qt6 versioned command had been edited by search and replace to the versionless "qt_add_qml_module" causing it to recursively invoke itself, thus breaking the kit.

      It seeems that when searching a project, it would be best not to show results of files provided by Qt, or in the very least not have them selected for replace by the search and replace function by default as it can be really easy to accidentally edit Qt provided files and break the installed kit.

      See below for a demo of the search and replace results for "qt6_add_qml_module" using search for current project

      Attachments

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

        Activity

          People

            davschul David Schulz
            rocketpoodle Austin Goddard (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes