Closed ef3d0c3e closed 4 days ago
Hello.
symbol-usage
does not use the codelens
method. It counts usages
by references
method because references
is supported in many lsp clients unlike codelens
.
I can't to check if the correct data is returned by ccls
because on all my try to run ccls
I get the error Client ccls quit with exit code 0 and signal 6.
. I don't use c++
in my work and may not know the specifics of running it.
Please, create a repo with a minimal c++
project and instructions on how to run it with nvim-lspconfig
settings.
I have noticed an issue while using symbol-usage with ccls. The usage shown is always 0 (0 usages, 0 defs, 0 implementations). I first believed this issue was related to ccls not giving the correct values. However when I tried nvim's builtin codelens using
vim.lsp.codelens.refresh()
, it shows the correct values. Nvim display the correct value: '1 ref
'I think this issue is related to symbol-usage interaction with ccls, because other LSPs for other languages show the correct values. Calling
:lua =vim.lsp.codelens.get()
shows the correct codelens being set by nvim:After a little bit of research, it looks like
self.client.request('textDocument/' .. method, params, handler, self.bufnr)
gives an empty response tohandler
which seems to be the cause of the problem.