clangd / coc-clangd

clangd extension for coc.nvim
Apache License 2.0
758 stars 34 forks source link

Duplicate references #639

Closed hexhexD closed 11 months ago

hexhexD commented 11 months ago

I'm using the latest 17.0.5 clangd, not sure if it's a clangd or coc.nvim issue.

image image

If you can, provide a minimal chunk of code that shows the problem (either inline, or attach it if larger).

Logs Please attach the clangd log from :CocCommand workspace.showOutput if you can. If possible, run with --log=verbose - note that the logs will include the contents of open files!

System information Clangd version (from the log, or clangd --version): clangd extension version (from :CocInfo): Operating system:

fannheyward commented 11 months ago

The locations were returned by clangd, looks like clangd duplicate them.

Set "clangd.trace.server": "verbose" and check trace logs :CocCommand workspace.showOutput clangd.

hexhexD commented 11 months ago

Yeah, I'm seeing the same range 3 times in [Trace - 07:18:34.490] Received response 'textDocument/references - (23)' in 1ms. Result: [

Thanks for the help, please feel free to close this issue.