Closed Elite-zx closed 4 months ago
clangd
in coc-settings.json when using coc-clangdclangd.path
in your coc-settings.json to be used by coc-clangd.which clangd /usr/local/bin/clangd
What should be done specifically, my coc-settings.json :
the problem still exists
Put clangd.path
in the root section
same error when I open .cpp file:
my coc-settings.json :
CocInfo:
vim version: VIM - Vi IMproved 8.2 8022520 node version: v17.9.1 coc.nvim version: 0.0.82-c3ae5c3b 2024-05-23 20:39:40 +0800 coc.nvim directory: /data/zenonzhang/.vim/plugged/coc.nvim term: dumb platform: linux
2024-06-05T20:12:51.742 INFO (pid:12826) [plugin] - coc.nvim initialized with node: v17.9.1 after 181 2024-06-05T20:12:52.974 INFO (pid:12826) [services] - LanguageClient clangd state change: stopped => starting 2024-06-05T20:12:52.979 INFO (pid:12826) [services] - LanguageClient clangd state change: starting => stopped 2024-06-05T20:12:52.980 ERROR (pid:12826) [services] - Server clangd failed to start: Error: Launching server "clangd" using command ../../../.config/coc/ extensions/coc-clangd-data/install/18.1.3/clangd_18.1.3/bin/clangd failed. ¦ at /data/zenonzhang/.vim/plugged/coc.nvim/build/index.js:75028:37 ¦ at async LanguageClient.createConnection (/data/zenonzhang/.vim/plugged/coc.nvim/build/index.js:74368:28) ¦ at async LanguageClient._start (/data/zenonzhang/.vim/plugged/coc.nvim/build/index.js:73999:30) ¦ at async Object.start (/data/zenonzhang/.vim/plugged/coc.nvim/build/index.js:75518:17) 2024-06-05T20:12:57.048 INFO (pid:12826) [attach] - receive notification: showInfo []
this annoying problem occured after I run clangd.install @v@
You can remove this ~/.config/coc/ extensions/coc-clangd-data/install/18.1.3/clangd_18.1.3/bin/clangd
.
My clangd has been running very well. However, after I ran the command clangd.install, I encountered the following issue.
My coc-settings are as follows:
my system aleady install clangd, and works fine :