rustup icon indicating copy to clipboard operation
rustup copied to clipboard

`timeout reading rustc version` on ion-shell

Open rirze opened this issue 1 year ago • 2 comments

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

  1. install ion-shell
  2. run rustup show

Possible Solution(s)

No response

Notes

ion-shell docs

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)

rirze avatar Jul 24 '23 14:07 rirze

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.

rbtcollins avatar Aug 20 '23 11:08 rbtcollins

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

dvd42 avatar Nov 09 '23 12:11 dvd42