question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

:CocCommand clangd.install

See original GitHub issue

I’m following the “Quick Start” guide and have run into problems on the :CocCommand clangd.install step. The guide claims coc-clangd will try to find clangd in my $PATH. I know that clangd 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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

23reactions
fannheywardcommented, Jun 15, 2020

You need to open C/C++ files to run :CocCommand clangd.install.

9reactions
CengsBlankycommented, Apr 20, 2021

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 as folllows:

{
    "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: $HOME/.config/coc/extensions/coc-clangd-data/install/*/clang*/bin/clangd make sure clangd is included in the path as you can see, I use llvm, which already includes clangd, so I do not need to install clangd suggested by coc

Read more comments on GitHub >

github_iconTop Results From Across the Web

coc-clangd - npm
clangd extension for coc.nvim. ... Start using coc-clangd in your project by running `npm i coc-clangd`. ... Install. npm i coc-clangd ...
Read more >
Clangd is not found in VIM using neoclide / coc.nvim
I typed in Vim :CocInstall coc-clangd; Complains about clangd is not installed; sudo apt-get ...
Read more >
[coc.nvim] clangd was not found on your PATH. - Reddit
:CocCommand clangd.install will install 15.0.3. ... I'm trying to downgrade my clangd version, and I've installed Clangd-13 and set it as the clangd...
Read more >
Frequently Asked Questions (FAQ) - What is clangd? - LLVM
How do I install clangd? ... Can you give an example configuration file for clangd? ... coc-clangd gives you the logs via :CocCommand...
Read more >
neoclide/coc.nvim - Gitter
I've wanted to play with clangd and installed coc-clangd with :CocInstall ... like :CocCommand clangd.install I'm getting [coc.nvim] Command: clangd.install ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found