Closed stradicat closed 2 years ago
Hello!
New rustacean here.
Welcome :wave:
First want to note that racer is essentially no longer maintained nor supported, and users should look at using Rust Analyzer instead.
If you do still want/need to build racer from source, be sure to follow the installation instructions in https://github.com/racer-rust/racer#current-nightly-rust and that you specify the correct toolchain when issuing build commands. The error is indicative of trying to compile racer with a toolchain that doesn't have the required components installed.
Racer, as well as many of the official tools/components like clippy and friends, make use of the compiler internals in a way that makes them comparatively difficult to compile from source as compared to a crate from crates.io. This unusual set of circumstances not only requires building on nightly, but typically a specific version can only be compiled with a specific set of nightly toolchains.
If you're still hitting issues with a recent nightly that has the requisite components, then your best bet would be to go back to a known-good nightly, as specified in the toolchain file in the repo root
Thanks for the heads-up, @calebcartwright!
I'm going with rust-analyzer
instead then.
Hello!
New rustacean here.
I tried building
racer
on a newly deployed dev machine yesterday, but the process couldn't be completed. I followed the same procedure as in other dev machines, but in this particular case, I get the following error message:[...]
My standard
rust
installation follows this procedure:The supposedly missing components, according to the error message, are already installed. I completely removed
rust
and reinstalled from scratch, the error persists.What would you suggest I do to debug?