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

clangd version parsing fails on Ubuntu when using clangd installed by apt #384

Closed
scarf005 opened this issue Oct 7, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@scarf005
Copy link

scarf005 commented Oct 7, 2022

This issue is very similar to #167.

  1. installed clangd-14 using sudo apt install clangd-14
  2. configured clangd path to be /usr/bin/clangd-14.
  3. clangd: Check for language server update gives me
Failed to check for clangd update: Error: Couldn't parse clangd --version output: Ubuntu clangd version 14.0.0-1ubuntu1
Features: linux+grpc
Platform: x86_64-pc-linux-gnu

Logs

> clangd-14 --version
Ubuntu clangd version 14.0.0-1ubuntu1
Features: linux+grpc
Platform: x86_64-pc-linux-gnu
> apt show clangd-14
Package: clangd-14
Architecture: amd64
Version: 1:14.0.0-1ubuntu1
Priority: optional
Section: universe/devel
Source: llvm-toolchain-14
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>

System information
Clangd version (from the log, or clangd --version): Ubuntu clangd version 14.0.0-1ubuntu1
clangd extension version: 0.1.21
Operating system: Kubuntu 22.04 x64

@HighCommander4
Copy link
Contributor

This is in fact the same issue as #167.

Unfortunately, it turns out that the fix for #167 has not yet appeared in a vscode-clangd release. The dependent package node-clangd which contains the fix needs a new version published on npm so that vscode-clangd can pick up the fix; filed clangd/node-clangd#18 for this.

@sam-mccall
Copy link
Member

Sorry about that. All the bits are now released, should be fixed in vscode-clangd 0.1.23

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

3 participants