Closed ghost closed 4 years ago
That extension on npm is broken now, you can use vim-plug to install it from github.
cd ~/.config/coc/extensions/node_modules/coc-ccls ln -s node_modules/ws/lib lib
Does this work for you ?
It appeared the author abandoned it, so I did too. I need to do some C development on a Raspberry PI, but neovim is laggy on that device, and when you add in code completion it is just too slow to be useful, so I decided to use CLion on my PC because it has excellent remote deployment capabilities ...
@rolandjon thanks, that did it for me!
cd ~/.config/coc/extensions/node_modules/coc-ccls ln -s node_modules/ws/lib lib
Does this work for you ?
thanks, that did it for me!
I just hit this missing symlink on windows. Fixed locally much the same way. In powershell as admin:
cd .config\coc\extensions\node_modules\coc-ccls
New-Item lib -ItemType SymbolicLink -Value .\node_modules\ws\lib\
cd ~/.config/coc/extensions/node_modules/coc-ccls ln -s node_modules/ws/lib lib
Does this work for you ?
That worked for me! Thanks!
This should be in the README :slightly_smiling_face:
cd ~/.config/coc/extensions/node_modules/coc-ccls
npm i
npm run build
For some reason listing coc-ccls
in my config by itself isn't enough to do the trick.
@tony it's what the thread has been saying all along it seems (extension is broken).
Life is easier with coc-clangd.
If extension is dead, and wish to keep with ccls, I just configure the server and not use the extension, unless there's a newer one.
How goes it @oblitum!
I will take a look at coc-clangd.
@tony hey 👍
@oblitum Moved over, things are much faster now. Surprised by how good clangd is
@tony yup, the main argument for ccls when it was out was due to clangd's lack of cache, it now has cache and all that.
hey! but how to configure with coc-clangd ,my clangd always gives me warning when it comes to c++11 standard
Thanks for the clangd suggestion.
Hi,
I installed coc.nvim using vim plug with the branch/master setting. It works well for lots of languages but when I installed coc-ccls it shows an error every time I start nvim:
_[coc.nvim] Unable to load global extension at /home/psd/.config/coc/extensions /nodemodules/coc-ccls: main file ./lib/extension.js not found, you may need t o build the project.
I did what it told me to do and went into _~/.config/coc/extensions/nodemodules/coc-ccls and deleted the package lock and all its node modules, and then ran:
yarn install --frozen-lockfile
And it generated lots of errors LoL:
Result from CocInfo
I am running Void Linux, but this problem also appears on my Linux Mint laptop too. I think the coc-ccls extension is out of date and no longer compatible with some of the newer node modules you started using. I would fix the extension source code myself, but I'm a C hacker and don't know anything about javascript or typescript LoL
Thanks, Phil