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
## versions
vim version: NVIM v0.8.1
node version: v19.1.0
coc.nvim version: 0.0.82-0bbf935e 2022-11-24 23:17:31 +0800
coc.nvim directory: /home/iamnotagenius/Sources/coc.nvim
term: alacritty
platform: linux
## Log of coc.nvim
2022-11-25T00:36:57.138 INFO (pid:511984) [configurations] - Add folder configuration from cwd: /home/iamnotagenius/Sources/coc.nvim/.vim/coc-settings.json
2022-11-25T00:36:57.523 INFO (pid:511984) [extension:coc-git] - Looking for git in: git
2022-11-25T00:36:57.561 INFO (pid:511984) [extension:coc-discord-rpc] - coc-discord-rpc is activated!
2022-11-25T00:36:57.571 INFO (pid:511984) [plugin] - coc.nvim initialized with node: v19.1.0 after 477
2022-11-25T00:36:57.575 INFO (pid:511984) [services] - LanguageClient csharp state change: stopped => starting
2022-11-25T00:36:57.584 INFO (pid:511984) [language-client-index] - Language server "languageserver.csharp" started with 512011
2022-11-25T00:36:57.776 INFO (pid:511984) [extension:coc-discord-rpc] - Connected to Discord Gateway
2022-11-25T00:37:03.092 INFO (pid:511984) [services] - LanguageClient csharp state change: starting => running
2022-11-25T00:37:03.095 INFO (pid:511984) [services] - service languageserver.csharp started
2022-11-25T00:37:08.392 INFO (pid:511984) [attach] - Request action: commandList [ 'sem', 'CocCommand sem', 14 ]
2022-11-25T00:37:09.371 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.checkCurrent' ]
2022-11-25T00:37:26.543 INFO (pid:511984) [attach] - Request action: commandList [ 'semanticTokens.i', 'CocCommand semanticTokens.i', 27 ]
2022-11-25T00:37:27.003 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.inspect' ]
2022-11-25T00:37:30.493 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.inspect' ]
2022-11-25T00:37:33.603 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.inspect' ]
2022-11-25T00:37:36.624 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.inspect' ]
2022-11-25T00:37:39.894 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.inspect' ]
2022-11-25T00:37:46.655 INFO (pid:511984) [attach] - receive notification: runCommand [ 'semanticTokens.inspect' ]
2022-11-25T00:37:51.645 INFO (pid:511984) [attach] - receive notification: showInfo []
Describe the bug
First I have to say this is a bug related to a specific language server, omnisharp-roslyn in my case. This language server provides tokens with names containing spaces and dashes, so when I run :CocCommand semanticTokens.inspect on class name, the type of token is not just 'class', but 'class name'. Another example for this is 'throw' keyword has a type 'keyword - control'. Tokens with these types does not have highlighting group attached to them.
Other token types without invalid characters are working as expected.
In case this is needed, here is output of :echo coc#util#semantic_hlgroups():
Result from CocInfo
Describe the bug
First I have to say this is a bug related to a specific language server, omnisharp-roslyn in my case. This language server provides tokens with names containing spaces and dashes, so when I run
:CocCommand semanticTokens.inspect
on class name, the type of token is not just 'class', but 'class name'. Another example for this is 'throw' keyword has a type 'keyword - control'. Tokens with these types does not have highlighting group attached to them.Other token types without invalid characters are working as expected.
In case this is needed, here is output of
:echo coc#util#semantic_hlgroups()
:My lsp config:
Reproduce the bug
We will close your issue when you don't provide minimal vimrc and we can't
reproduce it
Create file
mini.vim
with:Start (neo)vim with command:
vim -u mini.vim SomeClass.cs
Type
:CocCommand semanticTokens.checkCurrent
Vim would complain about invalid characters:
E5248: Invalid character in group name
The text was updated successfully, but these errors were encountered: