-
Notifications
You must be signed in to change notification settings - Fork 102
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
clangd executable not found when clangd.path is set #655
Comments
Can you state your VSCode version as well? |
Sorry I didn't get any notifications: My current Visual Studio Code version is 1.92.1 |
I'm not able to reproduce this. (Note however than I'm on Linux, not Windows.) I would suggest testing with some older vscode versions (they can be downloaded from https://code.visualstudio.com/updates). If you can find a vscode version X such that it works with version X but does not work with version X+1, then it's fair to say that the issue is caused by a vscode change and you should file an issue with those details at https://github.com/microsoft/vscode/issues/. |
I don't know what changed. I reverted the clangd plugin version as well as the Visual Studio Code version but wasn't able to find a combination where the previous settings worked. This is what the directory structure looks like:
This is the workspace setting file which works:
When using named folders there is an additional Previously it looked like this:
So backslashes are needed on Windows and the file extension needs to be also set. |
When I set a path to the clangd executable it doesn't work anymore (the settings were working before). It doesn't matter if I use a relative or absolute path. It only works if the clangd executable can be found on the system path and only the executable name ('clangd') is specified.
I'm guessing that this is caused by a recent change in Visual Studio Code itself. If anyone could confirm this I would create a bug report for Visual Studio Code.
System information
Clangd version (from the log, or
clangd --version
): 18.1.0rcclangd extension version: v0.1.29
Operating system: Windows 11
The text was updated successfully, but these errors were encountered: