Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.0.1, Qt Creator 3.3.0-rc1
-
None
-
Ubuntu 14.04 native install and on VM of 14.04 running on VMWare Player in Windows 7.
Description
Description:
If a source or header is created in a CMake project without adding the file to CMakeLists.txt, the autocomplete dropdown for includes cuts off the first letter of all items in the list. This is not just a graphical error, as the list gets reordered according to the incorrect names (Such as "X11" being at the top due to being only "11"). Also, adding the selected include will insert the incorrect name into the include statement. Problem subsides if source or header is added to CMakeLists.txt.
Steps to reproduce:
1. Open Qt Creator.
2. Create CMake project.
3. File > New file or project... > C++ > C++ [something] > Choose... > Finish creation
4. Type "#include <" with no quotes
5. List is incorrect.
Notes:
Git was used with project, but seems to be irrelevant.
Does not happen with QMake.
Seems to also happen if completely unrelated source is opened while a CMake project is open.
Attachments
For Gerrit Dashboard: QTCREATORBUG-13567 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
101393,2 | CppTools: Do not append '/' to fallback header paths | 3.3 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |