# Vscode c++ cpptools and clangd not working

**URL:** https://discourse.nixos.org/t/vscode-c-cpptools-and-clangd-not-working/21902
**Category:** Help
**Created:** [September 22, 2022, 4:13pm UTC](https://discourse.nixos.org/t/vscode-c-cpptools-and-clangd-not-working/21902 "2022-09-22T16:13:57Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![dav.dap](https://discourse.nixos.org/user_avatar/discourse.nixos.org/dav.dap/32/8145_2.png) [@dav.dap](https://discourse.nixos.org/u/dav.dap)
#### Post date: [September 22, 2022, 4:13pm UTC](https://discourse.nixos.org/t/vscode-c-cpptools-and-clangd-not-working/21902/1 "2022-09-22T16:13:57Z")

</div>

Hi everyone,

I have `vscode-with-extensions` (unstable) on `environment.systemPackages`, with the extensions being installed manually from the extensions bar.

I got the following problem with cpptools:

```auto
[Error - 16:59:51] cpptools client: couldn't create connection to server.
Launching server using command /home/davide/.vscode/extensions/ms-vscode.cpptools-1.12.4-linux-x64/bin/cpptools failed. Error: spawn /home/davide/.vscode/extensions/ms-vscode.cpptools-1.12.4-linux-x64/bin/cpptools ENOENT

```

and the following with clangd:

```auto
[Error - 17:11:30] Clang Language Server client: couldn't create connection to server.
Launching server using command /home/davide/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.0/clangd_15.0.0/bin/clangd failed. Error: spawn /home/davide/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.0/clangd_15.0.0/bin/clangd ENOENT

```

In other words, no c++ tool seems to work.

EDIT the two filed actually exist, but if I try to execute them from the terminal I get no such file or directory.

Thank you 🙂

Davide

---

_[View the full topic](https://discourse.nixos.org/t/vscode-c-cpptools-and-clangd-not-working/21902)._
