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
Open files do not refresh in vscode when compile_commands.json changes, unless the each file is manually closed and re-opened or remembering to run restart clangd server command (Which 99% of the time I forget to do after updating compile_commands.json), this causes confusion when switching targets that have different ifdefs and defines.
I see that clangd extension supports file watch, I tried to debug the extension and discovered that the file watch is never called, when I manually edited the code to force call it, when compile_commands.json changes language server restarts and the files in vscode are refreshed properly, without having to manually perform refresh clangd or close and open each file every time a target is switched.
So what's the solution? Can we have the file watch enabled back? (It fixes the issue) Are all opened files supposed to refresh automatically on vscode without restarting the server?
Thanks
System information
Clangd version (from the log, or clangd --version): 18.1.3 (tried on version 16 too, same issue)
clangd extension version: 1.29
Operating system: mac
The text was updated successfully, but these errors were encountered:
Hmmm so from my understanding this issue is still unresolved
Why not simply re-enable the file watch config? It doesn't harm to enable it back the way it was (which was optional anyways) and it would fix the issue (at least for me and for most people who have this problem I suppose)
Not sure if to tag as bug or enhancement -
Open files do not refresh in vscode when compile_commands.json changes, unless the each file is manually closed and re-opened or remembering to run restart clangd server command (Which 99% of the time I forget to do after updating compile_commands.json), this causes confusion when switching targets that have different ifdefs and defines.
I see that clangd extension supports file watch, I tried to debug the extension and discovered that the file watch is never called, when I manually edited the code to force call it, when compile_commands.json changes language server restarts and the files in vscode are refreshed properly, without having to manually perform refresh clangd or close and open each file every time a target is switched.
So what's the solution? Can we have the file watch enabled back? (It fixes the issue) Are all opened files supposed to refresh automatically on vscode without restarting the server?
Thanks
System information
Clangd version (from the log, or
clangd --version
): 18.1.3 (tried on version 16 too, same issue)clangd extension version: 1.29
Operating system: mac
The text was updated successfully, but these errors were encountered: