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

Indexing gets re-run for all open tabs when a single tab's file changes #773

Open
michaeleisel opened this issue Feb 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@michaeleisel
Copy link

michaeleisel commented Feb 6, 2025

When I make a change in one of my open tabs in VSCode, it runs indexing for other ones too.

Logs
I can only attach a small portion due to confidentiality requirements, with a few ... redactions

I[10:34:43.960] clangd version 18.1.8 (https://github.com/conda-forge/clangdev-feedstock 9a3b848a819cec20e302ce6c5243036d2146d636)
I[10:34:43.961] Features: linux
I[10:34:43.961] PID: 31916
I[10:34:43.961] Working directory: ...
I[10:34:43.961] argv[0]: ...
I[10:34:43.961] argv[1]: --header-insertion=never
I[10:34:43.961] argv[2]: --compile-commands-dir=...
I[10:34:43.961] argv[3]: --resource-dir=...
I[10:34:43.961] argv[4]: --background-index=false
I[10:34:43.961] Starting LSP over stdin/stdout
I[10:34:43.961] <-- initialize(0)
I[10:34:43.961] --> reply:initialize(0) 0 ms
I[10:34:43.964] <-- initialized
I[10:34:43.973] <-- textDocument/didOpen
I[10:34:44.001] <-- textDocument/codeAction(1)
I[10:34:44.002] <-- textDocument/documentLink(2)
I[10:34:44.002] <-- textDocument/inlayHint(3)
I[10:34:44.078] Loaded compilation database from ...
I[10:34:44.079] ASTWorker building file ... version 1 with command 

System information
Clangd version (from the log, or clangd --version):

clangd version 18.1.8 (https://github.com/conda-forge/clangdev-feedstock 9a3b848a819cec20e302ce6c5243036d2146d636)
Features: linux
Platform: x86_64-conda-linux-gnu

clangd extension version: v0.1.33
Operating system: Linux RHEL 7.9

@michaeleisel michaeleisel added the bug Something isn't working label Feb 6, 2025
@HighCommander4
Copy link
Contributor

Is the file you're editing a header? It's expected that clangd re-parses open tabs which include the header when a header changes (since changing the header may e.g. introduce new diagnostics or fix existing diagnostics in source files that include it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants