Open mellery451 opened 4 years ago
I just did an additional test myself and enabled ccls along with clangd...now I have lowlighting of inactive regions. So I guess it's clangd 10 that is the problem - perhaps this feature is not yet available or will only be released in 11. I will close this now
I'm reopening this issue for help specifically figuring out why inactive regions are not showing with clangd. When I change my coc config to enable ccls also, I see the inactive regions - so it's not a matter of incorrect colorscheme at least. When I use ONLY clangd (via coc-clangd), the inactive regions are never shown. I do see other semantic highlights going on, so I'm not sure what I need to debug to figure out what's broken. Is this likely a clangd problem, or an initialization problem perhaps?
also, I should mention that clangd is idle after the first few semantic hightlights show-up, so I don't think it's a matter of waiting longer for clangd to complete some indexing..in-fact, clangd is really fast on my system and never seems to be doing much in the background.
This seems to be related: https://github.com/clangd/clangd/issues/132
Im using coc.nvim + coc-clangd with clangd version 11.0.0 and can not get highlighting of inactive regions in macros to work aswell, those code regions just do not get LspCxxHlSkippedRegion highlight group, that's unfortunate
Looks inactive preprocessor regions are highlighted as comments in Clangd 12.0 and I still can't get highlighting of inactive regions in macros to work.
Semantic highlighting
Inactive preprocessor regions (#ifdef) are highlighted as comments.
clangd 12 is the last release with support for the non-standard textDocument/semanticHighlights notification.
Clients should migrate to the textDocument/semanticTokens request added in LSP 3.16.
I'm trying to figure out why my inactive regions are not showing as such (lowlighted as comments).
My setup:
CocInfo:
cxx-highlight verbose log:
I can confirm that some token highlighting is happening (enums and such), but the inactive preprocessor regions are not being lowlighted. What else could I look at to diagnose? FWIW some of the code I'm looking at are
#if/#else
, so even if my compile flags were wrong, ONE of those regions should be inactive. Advice appreciated.