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

reopen session looses parse context/code model

    XMLWordPrintable

Details

    Description

      i'm often running into the following situation (with cmake-based projects):

      • open a session/project, open a few files and do some coding
      • quit qt-creator
      • reopen qt-creator, which loads the last active session and opens the source files which had been opened before

      while it is nice that the files are reopened, it becomes somewhat unusable, as it is loosing the code model. so code completion / syntax highlighting is wrong and there are lots of parse errors. closing/reopening the file everything is good and the file is parsed correctly again.

      my guess is that when reopening the sessions, the file is not associated with a parse context from a cmake target, probably (speculation) because the file is opened before qtc has parsed the file

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes