-
Notifications
You must be signed in to change notification settings - Fork 59
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 validation check does not understand shorthands like PROGRA~1
#1518
Comments
The issue isn't so much that the argument to
tells us that the actual driver path that clangd is trying to use, which it gets from the compilation database, is The comparison is currently a plain string comparison, it's not aware of the fact that e.g. Could the comparison be reworked to understand that? Probably, though I'm not familiar with the relevant path-related APIs (possibly Windows-specific APIs would need to be used). Anyways, a workaround is to look in the logs for "not allowed driver" message, and use the path from there in |
PROGRA~1
Thank you for your precise answers. |
This also causes other issues like patterns with mixed forward/backward slashes fail to match anything, breaks setup that invokes toolchain from a workspace-relative directory under vscode. (e.g. |
In Windows 10, It looks like clangd can't cope with spaces or some special symbol in the --query-driver path for system include extraction. I use mingw in windows, and the path to mingw is set under the Program Files folder. Here is a comparison, the gcc paths are the same, but one has spaces and the other does not.
I hope clangd can do the path replacement automatically in windows.
Logs
--query-driver with spaces clangd report
System include extraction: not allowed driver
--query-driver without spaces clangd report
System includes extractor: successfully executed
if I remove spaces and keep the symbol
-
, I also have the same problem.System information
Win10 LTSC 2019 in vmware
Output of
clangd --version
:Editor/LSP plugin:
vscode + clangd + cmake tools
Operating system:
The text was updated successfully, but these errors were encountered: