-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 not found in coc-clangd but found in $PATH #32
Comments
What's the output |
So |
|
When I run |
What's the output do you run |
Maybe this series of commands will be of help. This was done in a fresh new terminal.
I understand this may not be coc-clangd's problem and I appreciate the help. |
You've put "~/.local/bin" on your path instead of "/Users/<MY_USERNAME>/.local/bin". You can fix this by unquoting the ~ so the shell will expand it:
|
ln -s /usr/local/bin/clangd /$HOME/.config/coc/extensions/coc-clangd-data/install/10.0.0/clangd_10.0.0/bin/clangd |
Coc-clangd doesn't detect my clangd binary installed with homebrew at
/usr/local/Cellar/llvm/10.0.0_3/bin/clangd
that I symlinked to~/.local/bin/clangd
and I added~/.local/bin/
to my$PATH
. I can run clangd from inside neovim as:!clangd
without a problem but coc-clangd can't detect it without hardcoding the path incoc-settings.json
with"clangd.path": "/usr/local/opt/llvm/10.0.0_3/bin/clangd"
. If I symlink the binary to/usr/local/bin
instead it just works.I would like to avoid hardcoding the path to coc-settings.json since it wouldn't be portable to my Linux computer. So my question is: where does coc-clangd search for
clangd
and why is it not using my$PATH
?The text was updated successfully, but these errors were encountered: