Closed petersohn closed 7 years ago
It seems that the problem is that the compile commands are not recognized. If I open a header file (that is not present in the compile_commands.json
), then clighter8 works, but without any information gathered from the compilation database. However, for source files that are present in the database, no compile commands are recognized and there is no highlighting.
can you post the compilation database snippet?
Looking deeper into the problem, it seems that the problem comes up when there is a --sysroot
in the compile commands. I'll write a new issue about it.
Or more precisely, if there is anything after the file name in the command, the problem comes up.
I installed the plugin, and set the libclang path (I have both 3.8 and 3.9 installed, but the problem persists with any of these). After starting vim, I get no error message, but the result of
:ClShowCompileInfo
is the following:v:null
, and nothing is highlighted. The log contains the following:After restarting vim (but leaving the clighter server running), the following warning appears in the log:
The functionality is the same, though. I get the
v:null
and no highlighting.I have Clang bindings installed for both the Python 2 and 3.
My vim has also both Python2 and Python3 support, as well as everything mentioned by clighter8: