Open ErinaInit opened 2 months ago
I have met this issue before. Swapping the order of clang
and clang-tools
in the list so that clang-tools
come first solved it for me as a workaround.
The problem only happens in a nix develop
devShell and not when, for example, using nix shell
twice to add clang
and clang-tools
to $PATH
, no matter the order. The reason seems to be that only nix develop
runs the setup hooks, and the setup hook of clang
(wrapped) adds the path to unwrapped clangd
to $_PATH
that's added to $PATH
by the stdenv setup file. Details in my messy note.
This worked. I wonder if we should fix this though.
Describe the bug
I'm developing a cpp project and I have some fuzz with clangd.
Steps To Reproduce
Steps to reproduce the behavior:
"x86_64-linux"
Linux 6.6.28, NixOS, 24.05 (Uakari), 24.05.20240427.58a1abd
yes
yes
nix-env (Nix) 2.18.2
"nixos"
/nix/store/801l7gvdz7yaibhjsxqx82sc7zkakjbq-source