Nathan Ridge
Nathan Ridge
> Would it not be possible to have this done through the `.clangd` file? It would be technically possible, but security-related considerations would have to be discussed. (Depending on the...
Updated issue title to clarify that the issue is related to symlinks. See also [this comment](https://github.com/llvm/llvm-project/pull/66757#issuecomment-1731079264) from Sam: > symlinks and `progra~1` mean normalization based on actual filesystem access, and...
> Problem is that "$(workspaceFolder}" is not parsed and substituted prior to passing the string in "--compile-commands-dir=". It should be, we [have support](https://github.com/clangd/vscode-clangd/blob/0f369260c486787f01169e6a2294fdc53777b166/src/config.ts#L37) for doing that.
Can you clarify which header you're performing go-to-definition on, and what is the actual path of the opened header vs. the path you would like to be opened?
Thanks, I understand now. Using `--query-driver=/usr/bin/gcc` as a command-line argument to clangd should get clangd to use the gcc built-in headers instead of the clang ones. (This option is discussed...
Please start by looking at https://clangd.llvm.org/troubleshooting#cant-find-standard-library-headers-map-stdioh-etc and https://clangd.llvm.org/guides/system-headers#query-driver `--query-driver` in particular tends to resolve this category of issue.
> I would still like to understand why this suddenly happened and why it worked without this line before If you share [verbose logs](https://clangd.llvm.org/troubleshooting.html#gathering-logs) without `--query-driver`, that might shed light...
> It is quite a mess, but here is the log file. Unfortunately these logs are incomplete. I'm looking for the full stderr from the server, these seem to include...
Ok, so the relevant parts of the log are: ``` I[09:02:47.844] ASTWorker building file /Users/peterzeman/test.cpp version 0 with command clangd fallback [/Users/peterzeman] /Library/Developer/CommandLineTools/usr/bin/clang -resource-dir=/Users/peterzeman/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -- /Users/peterzeman/test.cpp ``` In...
> @HighCommander4 I found it is the editor setting of my vscode that makes a diffrence. Configure settings as follows and the plugin can work like yours. > > ```...