Problem
attempting to list a toolchain's components gives an error on Windows 10. The same error is given trying to add components.
rustup component list
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support components
Steps
.\rustup-init.exe with default optionsrustup default stablerustup component listNotes
Fresh install of rustup, Windows 10 build 17763
same happens with the GNU toolchain
Possibly a duplicate of https://github.com/rust-lang/rustup.rs/issues/1184
Output of rustup --version: rustup 1.17.0 (069c88ed6 2019-03-05)
Output of rustup show:
Default host: x86_64-pc-windows-msvc
stable-x86_64-pc-windows-msvc (default)
rustc 1.34.0 (91856ed52 2019-04-10)
The output of rustup show looks truncated. Also Rustup 1.18.0 was released this morning and may have a better error message (we've changed a bunch of stuff around errors) so could you please try rustup self update and then rustup component list again? (Also show me the full output of rustup show
thanks!
PS > rustup self update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.18.0
PS > rustup show
Default host: x86_64-pc-windows-msvc
stable-x86_64-pc-windows-msvc (default)
rustc 1.34.0 (91856ed52 2019-04-10)
PS > rustup component list
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support components
that's the full output of rustup show - it definitely does look different to how I've seen it on linux
That looks very odd indeed. Can you confirm that the stable toolchain is in fact installed properly? I'd imagine so given the rustc version but that's very odd. Could you try rustup toolchain uninstall stable followed by rustup toolchain install stable and then a fresh rustup show please?
thanks so much! That seems to have fixed it
PS > rustup toolchain uninstall stable
info: uninstalling toolchain 'stable-x86_64-pc-windows-msvc'
info: toolchain 'stable-x86_64-pc-windows-msvc' uninstalled
PS > rustup show
Default host: x86_64-pc-windows-msvc
(error: toolchain 'stable-x86_64-pc-windows-msvc' is not installed)
PS > rustup toolchain install stable
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2019-04-11, rust version 1.34.0 (91856ed52 2019-04-10)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
57.7 MiB / 57.7 MiB (100 %) 9.8 MiB/s ETA: 0 s
info: installing component 'rust-std'
51.2 MiB / 51.2 MiB (100 %) 9.3 MiB/s ETA: 0 s
info: installing component 'cargo'
info: installing component 'rust-docs'
10.2 MiB / 10.2 MiB (100 %) 345.6 KiB/s ETA: 0 s
stable-x86_64-pc-windows-msvc installed - rustc 1.34.0 (91856ed52 2019-04-10)
info: checking for self-updates
PS > rustup show
Default host: x86_64-pc-windows-msvc
stable-x86_64-pc-windows-msvc (default)
rustc 1.34.0 (91856ed52 2019-04-10)
PS > rustup component list
cargo-x86_64-pc-windows-msvc (default)
clippy-x86_64-pc-windows-msvc
llvm-tools-preview-x86_64-pc-windows-msvc
rls-x86_64-pc-windows-msvc
rust-analysis-x86_64-pc-windows-msvc
rust-docs-x86_64-pc-windows-msvc (default)
rust-src
rust-std-aarch64-apple-ios
rust-std-aarch64-fuchsia
rust-std-aarch64-linux-android
rust-std-aarch64-pc-windows-msvc
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-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-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-nvptx64-nvidia-cuda
rust-std-powerpc-unknown-linux-gnu
rust-std-powerpc64-unknown-linux-gnu
rust-std-powerpc64le-unknown-linux-gnu
rust-std-riscv32imac-unknown-none-elf
rust-std-riscv32imc-unknown-none-elf
rust-std-riscv64gc-unknown-none-elf
rust-std-riscv64imac-unknown-none-elf
rust-std-s390x-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-thumbv7neon-linux-androideabi
rust-std-thumbv7neon-unknown-linux-gnueabihf
rust-std-thumbv8m.main-none-eabi
rust-std-wasm32-unknown-emscripten
rust-std-wasm32-unknown-unknown
rust-std-x86_64-apple-darwin
rust-std-x86_64-apple-ios
rust-std-x86_64-fortanix-unknown-sgx
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 (default)
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-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-pc-windows-msvc (default)
rustfmt-x86_64-pc-windows-msvc
PS > rustup component add rustfmt
info: downloading component 'rustfmt'
info: installing component 'rustfmt'
Could you try rustup toolchain uninstall stable followed by rustup toolchain install stable and then a fresh rustup show please?
This also fixed it for me!
Uninstall and reinstall fixed the following issue for me on Mac as well
[I] ➜ rustup component add rustc --toolchain stable-x86_64-apple-darwin
error: toolchain 'stable-x86_64-apple-darwin' does not support components
Worked here too!
Most helpful comment
That looks very odd indeed. Can you confirm that the
stabletoolchain is in fact installed properly? I'd imagine so given therustcversion but that's very odd. Could you tryrustup toolchain uninstall stablefollowed byrustup toolchain install stableand then a freshrustup showplease?