Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
Qt Creator 4.12.2
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