-
-
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
:CocCommand clangd.install #61
Comments
You need to open C/C++ files to run |
I had the same issue, but then it displays the following message and does nothing else
|
Did you check if it downloaded clangd? It downloaded for me, and I think you're supposed to add the clangd path to your PATH and restart vim. I gave up before I could get it working, because CentOS 7 won't run clangd 10 due to its glibc being too old. I'd happily try an older release without that requirement, but 10.0 seems to be only release posted, not counting pre-releases. |
Had same issue and updating my env variable PATH including the clangd fixed for me.
|
Also had to manually add the installation directory to my PATH. Not sure if this is intended behavior? If so, perhaps we should add it to the readme? |
MWE for newbies (like me):
|
Amend alternative to create a Node project (step 1 of my previous comment): |
I came up with the same problem, but I figured out why, just run :CocConfig, and it opens the config file: coc-settings.json, add {
"clangd.path": "/usr/local/opt/llvm/bin/clangd"
} or if you installed clangd as coc suggests(:CocCommand clangd.install), the path should be something like this: |
Btw: if C/C++ file is NOT Vim-opened through terminal, the |
I'm following the "Quick Start" guide and have run into problems on the
:CocCommand clangd.install
step. The guide claimscoc-clangd
will try to findclangd
in my$PATH
. I know thatclangd
is not in my$PATH
, but I see no output from:CocInstall coc-clangd
that it looked and failed to find it. I only see a single line with a green check that it installed into.config/coc/extensions/node_modules/coc-clangd
.When I run
:CocCommand clangd.install
to have it fetch the latest release, it returns[coc.nvim] Command: clangd.install not found
.The text was updated successfully, but these errors were encountered: