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

Project explorer remember incorrectly the last expand/collapsed state nodes on QBS projects

    XMLWordPrintable

Details

    • All
    • 1f58b5b1c (master)

    Description

      Since at least version 14 of QtCreator a very strange behaviour occurs when using complex qbs projects.
      Expanded/collapsed nodes in projectExplorer do not retain their state when switching sessions or reloading the main qbs.

      Steps to reproduce the problem
      01) Make sure that the 'default' session is empty
      02) Create a new session, e.g. 'test-qbs' and load the project
      03) Expand the node "app_and_lib\libraries-2\lib2" (VIEW IMAGE STEP-03.png)
      04) Change to "default" session
      05) Change to "test-qbs" session
      06) RESULT: all nodes are expanded. (VIEW IMAGE STEP-06.png)

      07) Collapse the "Libraries-1" node (VIEW IMAGE STEP-07.png)
      08) Change to "default" session
      09) Change to "test-qbs" session
      10) RESULT: all nodes are collapsed (VIEW IMAGE STEP-10.png)

      In my real project, there are near of 100 qbs files: modules, apps and librarires.
      This behaviour of QtCreator makes it impossible to work smoothly.

      To solve this problem I have to modify 3 files in the projectExplorer plugin and recompile QtCreator.
      The modifications are specified in the attached file "patch.txt".

      I think the problem originated with this modification
      https://bugreports.qt.io/browse/QTCREATORBUG-29201

      Attachments

        1. demo-qbs-app-and-lib.7z
          2 kB
        2. patch.txt
          4 kB
        3. STEP-03.png
          STEP-03.png
          9 kB
        4. STEP-06.png
          STEP-06.png
          13 kB
        5. STEP-07.png
          STEP-07.png
          11 kB
        6. STEP-10.png
          STEP-10.png
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            nmesas.alvic.net Nico Mesas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes