-
Notifications
You must be signed in to change notification settings - Fork 64
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
--query-driver
does not follow symlinks
#1605
Comments
--query-driver
does not resolve paths if they are symlinked--query-driver
works with glob but not with full path
Did you mean to write |
No, I forgot to mention that |
Ah, I see. Currently, the matching of the driver's path against the |
Yeah, but that would explain if things didn't work out if I had passed |
Maybe I'm missing something, but your observations make sense to me: if your driver's actual path is
|
Yes, I would like to confirm this as well:
I just wish to set a sensible and portable value to the query driver in my NVIM setup so that switching distros doesn't cause an issue in the future. What do you think I should put in the glob? And would it be possible to have a value which doesn't affect my non-embedded projects? |
As a vscode user, my approach is to specify |
Oh, for NVIM, there's no such option. Would it not be possible to have this done through the |
It would be technically possible, but security-related considerations would have to be discussed. (Depending on the editor, it may open up new attack surfaces like "clone malicious repository, containing a malicious driver script whitelisted via query-driver in .clangd, leading to clangd executing the script".) |
--query-driver
works with glob but not with full path--query-driver
does not follow symlinks
Updated issue title to clarify that the issue is related to symlinks. See also this comment from Sam:
|
I have a cross-compiled project where I was trying to get standard header path extraction to work. In my environment,
arm-none-eabi-gcc
is resolved by default to/usr/sbin/arm-none-eabi-gcc
.What I find weird is that clangd is able to resolve standard includes with
--query-driver=/usr/*/arm-none-eabi-gcc
but not with--query-driver=/usr/bin/arm-none-eabi-gcc
.The text was updated successfully, but these errors were encountered: