Warnings being printed after input control is returned to `cmd.exe`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
説明されている Windows 構成で rustup self update と rustup toolchain install 1.77-gnu 1.77-i686 1.77-i686-gnu を使って遅延した警告を再現します。RUSTUP_IO_THREADS=1 の場合の動作と比較し、非同期出力の経路を追跡します。原因を特定し、制御が cmd.exe に戻った後に警告が表示されないようにできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Although this bug has been spotted on outdated versions and a platform that is no longer supported, I still decided to write about it, because it may well still exist and indicate certain problems with the async code. Someone else needs to check it, since I don't have the opportunity to do it yet.
Problem
Assume having a Rust environment with tool management conflict(s) between Cargo and Rustup, which results in the well-known warning: tool is already installed. So, when a version specified in ${RUSTUP_UPDATE_ROOT}/rustup/release-stable.toml is distinct and I run rustup self update, then after downloading and installing it these warnings will be output literally into the command prompt. Moreover, this also sometimes happens not immediately, but literally a few seconds later. To me, this pretty suggests some kind of multithreading issue.
And once I noticed the same bug on another command: rustup toolchain install 1.77-gnu 1.77-i686 1.77-i686-gnu:
Configuration
Rustup versions tested: 1.27.1, 1.27.1+381 (03b7c56bf 2024-07-30)
Operating system: Windows 7 Ultimate (Service Pack 1) x64
Additional notes
- Setting the environment variable
RUSTUP_IO_THREADS=1doesn't affect the observed behavior. - I tested version 1.27.1+381 because 03b7c56bf0b4228977257810218b963b7246cf62 is the last revision that can be built with Rust 1.77.2 and run on Windows 7 - I deliberately ran
git bisectto find this out. It's worth noting that the bug is also present there, but in addition the text can no longer be colored incmd.exestarting with commit 509714deb4b8bc5be7e38e2f3779ed4e2b704177, which is shown on the first screenshot as well.
- 主要言語
- Rust
- スター
- 7.1k
- フォーク
- 1.1k
- 平均マージ
- 16時間 36分
- マージ済み PR(30日)
- 54
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rustup のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rust-lang/rustup#5172 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement O-shell
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
RustUp-init and better arm64 support for Windows.対応中かも @crutkas が 2 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
rust-lang/rustup の issue をすべて見る
似ている issue
-
fix: production-image scan fails on base-image CVEs (libzstd, libssl)対応中かも @Kravalg が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
VilnaCRM-Org/notification-service#41 ·
メンテナーはふだん 4 日以内に返信
-
Thai project names become 'project', 'project-2'… (slug keeps ASCII only)対応中かも @mastel2 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
storytold/craft-anything#2538 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
compiler-explorer/compiler-explorer#9738 ·
メンテナーはふだん 2 日以内に返信
-
area: runtime enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
hffgzktbcc-blip/ounce-core#663 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
zellij-org/zellij#6026 ·
メンテナーはふだん 1 日以内に返信