Closed felberj closed 10 months ago
Relecant clangd issues: https://github.com/clangd/clangd/issues/124 and from that, probably https://github.com/llvm/llvm-project/commit/b324c64b6d4c807c44d2aba4b408dd573b850f1b. Looks like clangd has changed their handling of symlinks.
Do you know of any work arounds at the moment? (I am a big noob)
Hey guys--any updates here that I should know?
(Sorry I've been so slow to reply. Was just totally underwater on other urgent things.)
Seems like y'all pretty clearly scoped this down to a clangd issue, so I'm going to close it here for now, but holler if you think that's a mistake and we can open it right back up.
I replaced paths that follow the -iquote or -isystem flags with their real paths in the _convert_compile_commands function in refresh.template.py. After making these changes, the function worked as expected.
Note: I think this might be a clangd issue. I decided to post this issue anyways because maybe its not. I am happy to contribute a fix to clangd or this repository, but I am still investigating where the actual bug lies.
Symptoms:
I cant include "external" headers anymore:
My logs are full of
I assume the error comes from here and more specifically here
I assume this might have something to do with resolving the "external" symlink so it cannot generate a good include path anymore?
Lets look at compile_commands.json:
We have
and the symlink resolves to the same path that is in the error message:
(Side note) I am also sure why the compile command has the following:
So this smells like a clangd bug to me. It looks like they dont resolve the include path. I will continue with my investigation next week. Pointers welcome :)
hedron_git_hash = "3dddf205a1f5cde20faf2444c1757abe0564ff4c"
Steps to reproduce:
0. Setup files
BUILD
WORKSPACE
main.cc
(my .bazelrc also needed
build --cxxopt="--std=c++20"
)1. generate json
2. delete include from main.cc
3. edit main.cc
I tried to add
absl::string_view
and then the error comes up.