Skip to content
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

Command CocCommand clangd.install fails with error 'Failed to install clangd language server' #651

Closed
jrmd54 opened this issue Jan 24, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@jrmd54
Copy link

jrmd54 commented Jan 24, 2024

This error occurs on a fresh install.
I added coc.nvim plugin and built it with command 'npm ci'
coc-clangd is then downloaded automatically when vim is started.
Since there is no clangd binary yet in my ~/.config/ folder, i have to run the command ':CocCommand clangd.install' (as requested when i open a .cpp file).

But the command fails with the following error message:
[coc.nvim] Failed to install clangd language server: TypeError: Expected signal to be an instanceof AbortSignal
You may want to install it manually.. See https://clangd.llvm.org/installation.html.

Thank you very much for your insight.

@jrmd54 jrmd54 added the bug Something isn't working label Jan 24, 2024
@jrmd54
Copy link
Author

jrmd54 commented Jan 25, 2024

From what i found it is possible this bug is caused by node-fetch (node-fetch/node-fetch#784).
I tried rebuilding coc-clangd from the repository with npm install, while changing version of node-fetch in package-lock.json, but it had no effect.
But maybe i did something wrong, i admit i am not very proficient with node.

@fannheyward
Copy link
Member

What's your Node.js version?

@jrmd54
Copy link
Author

jrmd54 commented Jan 26, 2024

It was 18.8.
Just in case i upgraded it to 20.11 (latest) and reinstalled coc-clangd plugin, but the error still shows up.

@fannheyward
Copy link
Member

Tested with Node.js v18.19.0 but can't reproduce.

I made a fix in coc-clangd v0.30.2, give it a test please.

@jrmd54
Copy link
Author

jrmd54 commented Jan 29, 2024

Hello,

It works, thank you very much!

@jrmd54 jrmd54 closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants