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

Using the last session makes scanning QML imports to be extremely slow

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows

    Description

      In case of using custom plugin, scanning QML takes long time when the project is opened with the last session stored.

      How to reproduce
      1. Enable "File" -> "Sessions" -> "Manage" -> "Restore last session on startup"
      2. Open attached project QCBug24628.zip and open main.qml file, then close the project.
      3. Open the project from file system.

      Red line appears under imported component as Unknown component.
      After a few seconds, the following messages appears then the red line disappears.
      "Scanning QML Imports"
      "Parsing QML Files"
      "Scanning for Tests"

      The attached video QCBug24628-video.zip shows the phenomena.

      A small project like the sample takes a few seconds but a very large project takes longer and sometimes it looks like scanning never complete.

      Note: If the project is opened without using the last session (i.e."Restore last session on startup" is disabled and open from File -> Open ... ), there is no delay.

      Attachments

        1. QCBug24628.zip
          7 kB
        2. QCBug24628-video.zip
          3.58 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tjenssen Tim Jenssen
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes