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

lens.location = above_whole_item shows !!MISSING: command!! #15602

Closed
spikespaz opened this issue Sep 13, 2023 · 2 comments · Fixed by #15606
Closed

lens.location = above_whole_item shows !!MISSING: command!! #15602

spikespaz opened this issue Sep 13, 2023 · 2 comments · Fixed by #15606
Labels
C-bug Category: bug

Comments

@spikespaz
Copy link

spikespaz commented Sep 13, 2023

Screenshot

rust-analyzer version: 2023-08-21 (built on nightly from that date, using oxalica/rust-overlay on NixOS)

rustc version: 1.72.0 (5680fa18f 2023-08-23)

relevant settings: None set.

RA shows the following when I hover the status bar label:

Failed to spawn one or more proc-macro servers.

- cannot find proc-macro-srv, the workspace `/home/jacob/Documents/linux-desktop/hyprland-workspace-profiles` is missing a sysroot

Failed to find sysroot for Cargo.toml file /home/jacob/Documents/linux-desktop/hyprland-workspace-profiles/Cargo.toml. Is rust-src installed? can't load standard library from sysroot

/nix/store/82a1211nk3afkhkwxx8bi289ql4mcdv0-rust-minimal-1.72.0

(discovered via `rustc --print sysroot`)

try installing the Rust source the same way you installed rustc

If there are any Nix people who are here, this is the DevShell I use:

devShells = eachSystem (system:
  let pkgs = pkgsFor.${system};
  in {
    default = pkgs.mkShell {
      strictDeps = true;
      packages = with pkgs; [
        (lib.hiPrio (rust-bin.stable.latest.minimal.override {
          extensions = [ "rust-docs" "clippy" ];
        }))
        (rust-bin.selectLatestNightlyWith (toolchain:
          toolchain.minimal.override {
            extensions = [ "rustfmt" "rust-analyzer" ];
          }))

        pkg-config
        openssl
      ];
    };
  });
@spikespaz spikespaz added the C-bug Category: bug label Sep 13, 2023
@spikespaz
Copy link
Author

Relevant: oxalica/rust-overlay#136

@spikespaz
Copy link
Author

spikespaz commented Sep 13, 2023

For the error ending with,

try installing the Rust source the same way you installed rustc

Adding "rust-src" to the extensions of the minimal override fixed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant