I've been using lsp for a while on my laptop to edit c files (clangd). It works brilliantly.
​
I just started using it on another computer, and although it works fine for the first buffer I open in a project, every subsequent buffer that I open highlights an error that one of the included libraries is "not found." I use CMake, so I've pointed to the build/compile\_commands.json, which seems to be picked up when I open the first buffer, but for some reason, every other buffer after the first does not see it \_unless\_ I restart the workspace.
​
Summary:
I need to restart my lsp workspace in every buffer after the first in a project for it to pick up the correct compile\_commands.json, but it seems to work on another computer.
I'm not sure what I can do to debug this, since the logs printed to clangd::stderr and lsp-log don't show anything abnormal. Anyone have any pointers on where I can look next?