Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 17.0.0, Qt Creator 18.0 (master branch)
-
None
-
Meson version: 1.8.1
Qt Creator build: cb6c5cfad5d0e79221b8ad66abb28c8681c5cf64
-
-
54a0c74ff (master), 4983f08c4 (17.0)
Description
When a Meson project with a some subdirs is re-loaded from a saved session, the paths to some files in subdirs are wrong. Wiping the project and recreating solves the problem.
I'm not sure how long this has been happening.
To reproduce:
- clone https://github.com/opendcdiag/opendcdiag
- configure (may require to be on Linux)
- switch sessions to something else or close the project
- switch back or reopen the project
Expected behaviour:
All source files are correctly found.
Actual behaviour:
Files with the wrong path are loaded in the project, resulting in their not being found.
See the file listing:
If you hover over one of the files greyed out, it shows a full path with "opendcdiag/framework/<filename>" with the "sysdeps/win32/" portion missing.
Also note how it's showing the Windows files on Linux, which can't be right. That may be caused by:
framework/meson.build
sysdeps_dir = 'sysdeps/' + target_machine.system() if target_machine.system() == 'cygwin' sysdeps_dir = 'sysdeps/windows' endif ... if target_machine.system() != 'windows' and target_machine.system() != 'cygwin' subdir('sysdeps/unix') endif subdir(sysdeps_dir)
Attachments
For Gerrit Dashboard: QTCREATORBUG-33071 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
652801,2 | MesonProjectManager: fix loading previously configured projects | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
653680,2 | MesonProjectManager: fix loading previously configured projects | 17.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |