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: binary not present #128909

Closed
vale981 opened this issue Jul 1, 2021 · 4 comments · Fixed by #129231
Closed

clangd: binary not present #128909

vale981 opened this issue Jul 1, 2021 · 4 comments · Fixed by #129231
Labels
0.kind: bug 0.kind: regression Something that worked before working no longer 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related

Comments

@vale981
Copy link
Contributor

vale981 commented Jul 1, 2021

Describe the bug
A clear and concise description of what the bug is.

/nix/store/sjvafn1hkr1cksby9dalrvmli6ymdb1z-clang-tools-12.0.0/bin/clangd: line 27: /nix/store/scx436nnh1nrfkwk7fla0rhf1ax5ys4k-clang-12.0.0/bin/clangd: No such file or directory

and

ls /nix/store/scx436nnh1nrfkwk7fla0rhf1ax5ys4k-clang-12.0.0/bin/
clang    clang-12     clang-cl   clang-extdef-mapping  clang-offload-bundler  clang-refactor  clang-scan-deps  diagtool  scan-build
clang++  clang-check  clang-cpp  clang-format          clang-offload-wrapper  clang-rename    cpp              hmaptool

To Reproduce

  1. nix-shell -p clang-tools
  2. clangd

Expected behavior
Clangd should launch.

Notify maintainers
@aherrmann

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.12.9-zen1, NixOS, 21.11pre299299.3a8d7958a61 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.12`
 - channels(root): `"nixos-21.11pre299299.3a8d7958a61, nixos-stable-20.03.3328.6d1a044fc9f, nixos-unstable"`
 - channels(hiro): `"nixos-21.11pre299299.3a8d7958a61"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@vale981
Copy link
Contributor Author

vale981 commented Jul 2, 2021

llvmPackages_12.clang-unwrapped does not seem to have clangd

@endofunky
Copy link

This is causing me trouble right now as well. Perhaps an issue in the unpackPhase for clang 12:

    unpackPhase = ''
      unpackFile $src
      mv clang-* clang
      sourceRoot=$PWD/clang
      unpackFile ${clang-tools-extra_src}
    '';

For previous clang versions it includes an extra mv:

   unpackPhase = ''
      unpackFile $src
      mv clang-* clang
      sourceRoot=$PWD/clang
      unpackFile ${clang-tools-extra_src}
      mv clang-tools-extra-* $sourceRoot/tools/extra
    '';

Mic92 added a commit to Mic92/nixpkgs that referenced this issue Jul 4, 2021
@Mic92
Copy link
Member

Mic92 commented Jul 4, 2021

I fixed it but I would appreciate if someone on macOS could give this a test build.

github-actions bot pushed a commit that referenced this issue Sep 9, 2021
fixes #128909

(cherry picked from commit f69522b)
bjornfor pushed a commit that referenced this issue Sep 10, 2021
fixes #128909

(cherry picked from commit f69522b)
@robertodr
Copy link
Contributor

I'm seeing this again with nixos-unstable and version 13.0.0 of clang-tools:

/nix/store/pkc8gzxdxp71b0x8940kgjc1h2m4qzd0-clang-tools-13.0.0/bin/clangd: line 27: /nix/store/1f8vwdir1p2z48ppqm6zcm29y73r2q1x-clang-13.0.0/bin/clangd: No such file or directory

@bjornfor bjornfor added the 0.kind: regression Something that worked before working no longer label Nov 17, 2021
@rrbutani rrbutani added the 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 0.kind: regression Something that worked before working no longer 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants