rust-analyzer is not installed for the toolchain #256
Answered
by
mrcjkb
darkseid-is
asked this question in
Q&A
-
Neovim version (nvim -v)v0.9.5 Operating system/versionDebian Output of :checkhealth rustaceanvim==============================================================================
rustaceanvim: require("rustaceanvim.health").check()
Checking for Lua dependencies ~
- OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.
Checking external dependencies ~
- OK rust-analyzer: found
- OK Cargo: found cargo 1.76.0 (c84b36747 2024-01-18)
- OK rustc: found rustc 1.76.0 (07dca489a 2024-02-04)
Checking config ~
- OK No errors found in config.
Checking for conflicting plugins ~
- OK No conflicting plugins detected.
Checking for tree-sitter parser ~
- OK tree-sitter parser for Rust detected.
error: 'rust-analyzer' is not installed for the toolchain 'stable-x86_64-unknown-linux-gnu'How to reproduce the issueInstall rust
Download rust-analyzer binary to pathExpected behaviourLoad rust-analyzer binary from path. Actual behaviourerror: 'rust-analyzer' is not installed for the toolchain 'stable-x86_64-unknown-linux-gnu' The minimal config used to reproduce this issue.Default config |
Beta Was this translation helpful? Give feedback.
Answered by
mrcjkb
Feb 25, 2024
Replies: 1 comment 1 reply
-
|
Hey 👋 This is not a rustaceanvim bug, but an issue with how you are installing rust-analyzer. Please refer to the rust-analyzer installation manual: As of today, you need to run: rustup component add rust-src
rustup component add rust-analyzerThe Closing and converting up a discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrcjkb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey 👋
This is not a rustaceanvim bug, but an issue with how you are installing rust-analyzer.
Please refer to the rust-analyzer installation manual:
As of today, you need to run:
The
rust-analyzerthat rustaceanvim detected in the health check is just the wrapper provided by rustup, which launches the real executable for your system.Closing and converting up a discussion.