You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.
On Linux (tested it on Debian buster), libclang does only search for system headers in the default system locations but not in clang's own include directory /usr/lib/llvm-6.0/lib/clang/6.0.0/include (the version depends on the installed clang package). This directory for example contains stddef.h, so chromatica currently cannot highlight common types like size_t. A simple workaround for this issue is adding clang's include directory to the global chromatica flags:
On macos, I did not experience such problems. Maybe Apple's libclang got some patches to read all include directories.
In my opinion, that is actually a libclang issue but users of chromatica should know about this (maybe a hint in the README file?). YouCompleteMe, which is also libclang based, brings its own copy of clang headers to avoid this issue. They have a very long issue about libclang search path problems.
The text was updated successfully, but these errors were encountered:
the syntax highlighting improved a lot. However, Chromatica still doesn't highlight some header names.
For example vector, system_error, cstring and unistd.h in this file are not highlighted.
Is this normal or do I need to do anything else?
I have tried adding every path from
echo| clang -std=c++17 -v -E -x c++ -
with -I in .chromatica but nothing changed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On Linux (tested it on Debian buster), libclang does only search for system headers in the default system locations but not in clang's own include directory
/usr/lib/llvm-6.0/lib/clang/6.0.0/include
(the version depends on the installed clang package). This directory for example containsstddef.h
, so chromatica currently cannot highlight common types likesize_t
. A simple workaround for this issue is adding clang's include directory to the global chromatica flags:On macos, I did not experience such problems. Maybe Apple's libclang got some patches to read all include directories.
In my opinion, that is actually a libclang issue but users of chromatica should know about this (maybe a hint in the README file?). YouCompleteMe, which is also libclang based, brings its own copy of clang headers to avoid this issue. They have a very long issue about libclang search path problems.
The text was updated successfully, but these errors were encountered: