Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.15.0-beta1
-
None
-
Ubuntu 20.04
-
-
f7d729f0b519aa17ec201ae76543185b92537d4b (qt-creator/qt-creator/4.15)
Description
Qt Creator 4.15 seems to have problems with parsing simple CMake projects. I'm getting the following symptoms with build 480 (and some earlier builds too) of Qt Creator 4.15.0 beta1 on Ubuntu 20.04 (with CMake 3.16.3):
1. Create a new project using the Plain C++ Application template. Select CMake as the build system.
BUG 1: The Projects view shows a <File System> branch with greyed-out CMakeLists.txt and main.cpp files. Is this expected? These files are visible also elsewhere in the tree.
2. Close the project. Open a terminal and navigate to the project directory. Delete the CMakeLists.txt.user file created by Qt Creator. Create a build subdirectory, navigate to it and run cmake .. to configure the build directory.
3. In Qt Creator, open the CMakeLists.txt file located in the project directory. A Configure Project page will be shown in the main window. Qt Creator should automatically detect the build directory; ensure the checkbox next to its path is selected, as in the screenshot below, and click Configure Project.
BUG 2: The Projects view shows a <File System> item, but no CMake targets:
The Projects page displays a warning message The project was not parsed successfully:
The problems described above do not occur in Qt Creator 4.14.0 run in the same system.
Attachments
For Gerrit Dashboard: QTCREATORBUG-25387 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
337368,3 | CMakePM: Treat empty build as empty when importing CMake builds | 4.15 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |