Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.2.1, Qt Creator 4.3.0
-
Windows 7, Ubuntu 16.04
Description
If a CMake cache variable is set to a string containing "//" using the projects : CMake widget, it initially applies fine, and is written into the .user file CMake.Configuration correctly.
However, when the project is closed and reloaded, it is read back in with the "//" (and everything after it) truncated, and reapplied (forcibly overwriting the correct values from the CMakeCache).
When set via the Kit CMake Configuration textbox, the corruption occurs immediately.
Our project expects some download URLs for external projects to be provided as part of configuration; this bug crops them after the scheme: prefix.
This bug appears to be due to CMakeConfigItem::fromString attempting to crop off # and // as comment markers. It's not clear to me what circumstances would lead to comments in either of these places, but if they are present this should at least respect some form of quoting allowing the characters to be be present in a string-valued cache variable.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-18348 CMake: The value of the variable is lost after the colon (:)
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-18385 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
197982,2 | CMake: Only handle strings at start of line | 4.3 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |