Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Hierarchy result is incomplete when clangd run with remote index environment #1358

Open
simon8233 opened this issue Nov 1, 2022 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@simon8233
Copy link

Hi everyone,

I not sure it's misconfiguration or bugs.

I used clangd-indexer to generate index file and deploy clangd remote index server in internal
environments

Everything is work until I use "Show Call Hierarchy" feature in VS Code.
(Find All References with remote index is work and very fast , remote index is powerful and smoothly )

I use Show Call Hierarchy button on VScode with Remote Index .

It seem clangd only refers opened file and show corresponding info.
(It means overall Call Hierarchy is incomplete in whole codebase)

but, when I build up background index is workable and can provide correct and all "Call Hierarchy" information.

I try to enable --log=verbose in remote index server and clangd process

request v1/Refs => OK: 48 result in 2ms
request v1/Lookup => OK 1 result in 0ms

It seems first request found correct references count
but, Lookup is incorrect result.. I not sure why clangd filter out references result

Very thanks for your reading.
anyone can help give some suggestion. I very appreciate it

It's sys information
Clangd / Clangd Remote index version : 14
Editor/LSP plugin: VScode + Clangd
Operating system: Linux u1804

@simon8233 simon8233 changed the title Call Hierarchy result is incomplete when using remote index Call Hierarchy result is incomplete when remote index environment Nov 1, 2022
@simon8233 simon8233 changed the title Call Hierarchy result is incomplete when remote index environment Call Hierarchy result is incomplete when clangd run with remote index environment Nov 1, 2022
@kadircet kadircet added the help wanted Extra attention is needed label Nov 29, 2022
@kadircet
Copy link
Member

this seems like an issue, but we're not prioritizing right now. so any help is welcome

@simon8233
Copy link
Author

simon8233 commented Dec 2, 2022

Thanks for your reply.
To help me to confirm it's an issue

@djvolz
Copy link

djvolz commented Mar 10, 2023

Confirming that we're also seeing this issue. Will try and contribute a fix if I get some spare time.

@kishykumar
Copy link

kishykumar commented Mar 21, 2023

Can we please get this fixed?

@HighCommander4
Copy link

Folks following this thread: if you're able to try the patch at llvm/llvm-project#71605 and see whether it fixes the problem, that would be helpful info

@simon8233
Copy link
Author

Thanks for community help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants