clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
594 stars 97 forks source link

vscode-clangd: "Check for language server update" failed #559

Open jievince opened 7 months ago

jievince commented 7 months ago

Please describe the problem. For hints on what information is helpful, see: https://clangd.llvm.org/troubleshooting.html

If you can, provide a minimal chunk of code that shows the problem (either inline, or attach it if larger).

image

image

System information Clangd version (from the log, or clangd --version):

clangd --version
Ubuntu clangd version 13.0.1-++20220120110924+75e33f71c2da-1~exp1~20220120231001.58
Features: linux
Platform: x86_64-pc-linux-gnu

clangd extension version: Operating system:

cat /etc/issue
Ubuntu 20.04.4 LTS \n \l
HighCommander4 commented 7 months ago

clangd extension version:

You left this blank, can you post it please?

You can see the version when you hover over the extension in the Extensions panel, for example in this screenshot the version is v0.1.25:

vscode-clangd-version

jievince commented 7 months ago

clangd extension version:

You left this blank, can you post it please?

Hi, I use the latest version v0.1.25

jievince commented 7 months ago

Does this error have anything to do with the clangd installed on my computer? I found that its version number 13.0.1-++20220120110924+75e33f71c2da-1~exp1~20220120231001.58 looked very strange.

HighCommander4 commented 7 months ago

Does this error have anything to do with the clangd installed on my computer? I found that its version number 13.0.1-++20220120110924+75e33f71c2da-1~exp1~20220120231001.58 looked very strange.

Yes, I think the issue is related to the update check not handling the format of this version number correctly.

A fix related to this was landed a while ago in https://github.com/clangd/node-clangd/commit/fd4795ca8be8d0eea953ed1e8b11e2bc98349991, but there may be some cases it doesn't handle.