user5965026
user5965026

Reputation: 485

Failed to install clangd language server in VS Code

I'm using VS Code and my workspace is on a remote Linux server. I successfully installed clangd extension on the remote server, however, when I tried to download the language server, I get the following error:

Failed to install clangd language server: FetchError: request to https://api.github.com/repos/clangd/clangd/releases/latest failed, reason: getaddrinfo ENOTFOUND api.github.com You may want to install it manually.

I have not been able to find a related question on this. Could someone advise what is causing this issue?

Upvotes: 0

Views: 9861

Answers (1)

Davonter
Davonter

Reputation: 11

First, install clangd manually: sudo apt-get install clangd.

Then, in VS Code: press Ctrl + Shift + P and search for: "clangd: Check for language server update".

Upvotes: 0

Related Questions