vscode-clangd icon indicating copy to clipboard operation
vscode-clangd copied to clipboard

`clangd` binaries suffixed with version number are not automatically found

Open adalisk-emikhaylov opened this issue 1 year ago • 1 comments

The extension assumes that the Clangd binary is named clangd, but it's often suffixed with version number, e.g. clangd-17.

A very common usecase on Ubuntu is installing the latest Clang+Clangd from https://apt.llvm.org/, which has a suffixed binary.

I suggest that those suffixed binaries should be auto-detected too. I'd suggest talking the binary with the largest suffix number, then comparing --versions against the unsuffixed binary and picking the newer one.

adalisk-emikhaylov avatar Jan 31 '24 13:01 adalisk-emikhaylov

You're probably aware of this, but just for completeness, you can specify other binary names (and also full paths) using "clangd.path".

HighCommander4 avatar Feb 01 '24 06:02 HighCommander4