rustup
rustup copied to clipboard
`timeout reading rustc version` on ion-shell
Problem
I've installed rustup via the online install file.
Currently running rustup show
in ion-shell shows this:
# rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/<my_username>/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2022-08-27-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
active toolchain
----------------
stable-x86_64-unknown-linux-gnu (default)
(timeout reading rustc version)
This does not timeout in zsh or bash for that subcommand.
Steps
- install ion-shell
- run
rustup show
Possible Solution(s)
No response
Notes
Rustup version
1.26.0
Installed toolchains
Default host: x86_64-unknown-linux-gnu
rustup home: /home/<my_username>/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2022-08-27-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
active toolchain
----------------
stable-x86_64-unknown-linux-gnu (default)
rustc 1.71.0 (8ede3aae2 2023-07-12)
That means that the command rustup runs to get the rustc version hung without any point. (src/toolchain/toolchain.rs line 223 or thereabouts).
You could start to track this down using tools like strace, or by running the underlying command ($rustup_home/toolchains/$toolchain/bin/rustc --version) by hand and see what happens. It might be unrelated to your shell.
This is still an issue. In fact, any command involving rustc (e.g., rustc --version) hangs.
rust installed via: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.61.0 -y