Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 6.0.0-beta2
-
None
-
Gentoo Linux AMD64 X11.
KDE Plasma 5.23.2.
-
-
426fde79d6b920d4ccbc0c90659633e1c893e826 (qt-creator/qt-creator/6.0)
Description
Enabling clangd results in code appearing grayed out even after the `#endif`. This is how it appears without clangd:
Enabling clangd results in:
Whatever is responsible for this seems to break "code graying" completely. For example, try these reproduction steps:
- Open Creator.
- Create a new project.
- Select "Non-Qt Project" and "Plain C++ Application". I chose "qmake" as build system for simplicity.
- In `main.cpp`, go to the first line and add:
#ifdef FOO #endif
Now the code should look like this:
#ifdef FOO #endif #include <iostream>
Go to the first line again and insert a blank line. Creator gets bugged out by this. The wrong lines are being grayed out, and there's even an error message in there saying "Unterminated conditional directive."