-
Notifications
You must be signed in to change notification settings - Fork 943
Fresh install on macos can't install rustfmt and clippy using rustup #1558
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
Comments
Could you try running |
No luck with
As for the beta and nightly toolchains, is the documentation at https://beta.rust-lang.org/ supposed to work only with those? I think the website should explicitly mention it, because the wording suggests that the only beta is the website, not the tooling. |
I don't know if it's related, but on Windows running On GNU/Linux, |
There were distribution problems with rustup on Windows, they're currently being addressed, so hopefully this should be resolved today. |
I'm seeing the same issue on macOS 10.12.
I did
And here is the output of cargo-x86_64-apple-darwin (default) clippy-preview-x86_64-apple-darwin (installed) lldb-preview-x86_64-apple-darwin llvm-tools-preview-x86_64-apple-darwin rls-preview-x86_64-apple-darwin rust-analysis-x86_64-apple-darwin rust-docs-x86_64-apple-darwin (default) rust-src rust-std-aarch64-apple-ios rust-std-aarch64-fuchsia rust-std-aarch64-linux-android rust-std-aarch64-unknown-cloudabi rust-std-aarch64-unknown-linux-gnu rust-std-aarch64-unknown-linux-musl rust-std-arm-linux-androideabi rust-std-arm-unknown-linux-gnueabi rust-std-arm-unknown-linux-gnueabihf rust-std-arm-unknown-linux-musleabi rust-std-arm-unknown-linux-musleabihf rust-std-armebv7r-none-eabi rust-std-armebv7r-none-eabihf rust-std-armv5te-unknown-linux-gnueabi rust-std-armv5te-unknown-linux-musleabi rust-std-armv7-apple-ios rust-std-armv7-linux-androideabi rust-std-armv7-unknown-cloudabi-eabihf rust-std-armv7-unknown-linux-gnueabihf rust-std-armv7-unknown-linux-musleabihf rust-std-armv7r-none-eabi rust-std-armv7r-none-eabihf rust-std-armv7s-apple-ios rust-std-asmjs-unknown-emscripten rust-std-i386-apple-ios rust-std-i586-pc-windows-msvc rust-std-i586-unknown-linux-gnu rust-std-i586-unknown-linux-musl rust-std-i686-apple-darwin rust-std-i686-linux-android rust-std-i686-pc-windows-gnu rust-std-i686-pc-windows-msvc rust-std-i686-unknown-cloudabi rust-std-i686-unknown-freebsd rust-std-i686-unknown-linux-gnu rust-std-i686-unknown-linux-musl rust-std-mips-unknown-linux-gnu rust-std-mips-unknown-linux-musl rust-std-mips64-unknown-linux-gnuabi64 rust-std-mips64el-unknown-linux-gnuabi64 rust-std-mipsel-unknown-linux-gnu rust-std-mipsel-unknown-linux-musl rust-std-powerpc-unknown-linux-gnu rust-std-powerpc-unknown-linux-gnuspe rust-std-powerpc64-unknown-linux-gnu rust-std-powerpc64le-unknown-linux-gnu rust-std-powerpc64le-unknown-linux-musl rust-std-riscv32imac-unknown-none-elf rust-std-riscv32imc-unknown-none-elf rust-std-s390x-unknown-linux-gnu rust-std-sparc-unknown-linux-gnu rust-std-sparc64-unknown-linux-gnu rust-std-sparcv9-sun-solaris rust-std-thumbv6m-none-eabi rust-std-thumbv7em-none-eabi rust-std-thumbv7em-none-eabihf rust-std-thumbv7m-none-eabi rust-std-wasm32-unknown-emscripten rust-std-wasm32-unknown-unknown rust-std-x86_64-apple-darwin (default) rust-std-x86_64-apple-ios rust-std-x86_64-fuchsia rust-std-x86_64-linux-android rust-std-x86_64-pc-windows-gnu rust-std-x86_64-pc-windows-msvc rust-std-x86_64-rumprun-netbsd rust-std-x86_64-sun-solaris rust-std-x86_64-unknown-cloudabi rust-std-x86_64-unknown-freebsd rust-std-x86_64-unknown-hermit rust-std-x86_64-unknown-linux-gnu rust-std-x86_64-unknown-linux-gnux32 rust-std-x86_64-unknown-linux-musl rust-std-x86_64-unknown-netbsd rust-std-x86_64-unknown-redox rustc-x86_64-apple-darwin (default) rustfmt-preview-x86_64-apple-darwin |
This is also preventing the removal of
|
But:
But still does not work with "stable":
EDIT:
fixed the problem. |
I could also fix this issue by removing and adding stable again. |
Thanks |
clippy and rustfmt are also missing for x86_64-unknown-freebsd:
|
Had a lot of jobs in Travis start failing recently because of this too: https://travis-ci.org/bspeice/qadapt/jobs/465480502 |
Resoves issues related to rust-lang/rustup#1558
Resoves issues related to rust-lang/rustup#1558
FWIW I had to run the following to get to a working state. rustup toolchain remove stable && rustup toolchain install stable |
This worked for me. Thank you! |
I see this with clippy on nightly x86_64-apple-darwin:
However, I don't see it with rustfmt:
Regardless, it isn't unclear that it's the same issue, since this issue was originally that the stable toolchain "does not contain component", whereas this error message says it's "unavailable for download." |
Indeed, it's unrelated. My issue is that clippy is actually unavailable for today's nightly, per https://mexus.github.io/rustup-components-history/x86_64-apple-darwin.html. |
Went with |
What happens if you then
Which makes sense, given that both rustfmt and clippy are missing from today's nightly according to https://mexus.github.io/rustup-components-history/x86_64-apple-darwin.html. |
Had the same issue with rustc 1.33.0 on Darwin (macos Mojave) and fish shell. Following the consensus (
|
@jxub I think you just need to re-install cargo-clippy via |
* Set up CI with Azure Pipelines * Fix Pipeline Settings * Add magic code rust-lang/rustup#1558 * fix: Remove nightly toolchain
I have the same issue with a fresh install of freeBSD. rustup% curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh :( info: downloading installer Welcome to Rust! This will download and install the official compiler for the Rust It will add the cargo, rustc, rustup and other commands to /home/irevoire/.cargo/bin This can be modified with the CARGO_HOME environment variable. Rustup metadata and toolchains will be installed into the Rustup /home/irevoire/.rustup This can be modified with the RUSTUP_HOME environment variable. This path will then be added to your PATH environment variable by /home/irevoire/.profile You can uninstall at any time with rustup self uninstall and Current installation options: default host triple: x86_64-unknown-freebsd
info: profile set to 'default' After determining the correct date, install it with a command such as:
Then you can use the toolchain with commands such as:
Is there any way to ignore clippy and rustfmt ? I just want to run cargo and rustc... |
I've a fix in-train which will solve this hopefully (forcing the toolchain during rustup installation) |
Similar
The suggested commands didn't help. |
Rustup 1.20.2 fixed the initial install hiccoughs, and beyond that, stable is now guaranteed to have the tooling components whereas nightly is not. I'm closing this issue as a result. |
If you have further issues, please open fresh issues with full explanations of what you're doing and what you hoped would happen. |
Following the instructions in https://beta.rust-lang.org/learn/get-started I ran the commands:
rustup add component rustfmt
andrustup add component clippy
and got the following errors:and
I am new to the community, so apologies if this has an obvious explanation.
The text was updated successfully, but these errors were encountered: