Fish completions for rustup suggest files alongside subcommands
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
rustup completions fish の実装から始め、fish の補完出力をどのように生成するかを確認してください。issue では complete -c rustup -f の追加も提案されています。fish の出力に関する既存の補完テストまたは fixture を確認してください。rustup の後に Tab キーを押すと、ファイルやディレクトリを列挙せずにサブコマンドが候補として表示される状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
In fish shell, when you use an autocomple using tab you're getting directories and files alongside rustup subcommands.
As i know, rustup doesn't use any directories or files as arguments, so i recognize it as a bug
Steps
- Setup fish autocomplete. If you are on linux you can run
rustup completions fish rustup > ~/.config/fish/completions/rustup.fish - In fish write 'rustup '(leave one space char) and press tab. It should display subcommands and files and dirs
Possible Solution(s)
You can add 'complete -c rustup -f' in the beginning of fish autocomplete output. It will prevent display of files and directories.
I also tried to fix this in source code. I haven't find better solution than this:
I tried to find out how to make it a bit more beautiful with clap but no result.
Notes
No response
Rustup version
rustup 1.29.2 (2026-10-22)
Installed toolchains
Default host: x86_64-unknown-linux-gnu
rustup home: /home/nikolai/.local/share/rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (active, default)
nightly-x86_64-unknown-linux-gnu
1.93-x86_64-unknown-linux-gnu
1.93.0-x86_64-unknown-linux-gnu
1.95.0-x86_64-unknown-linux-gnu
1.96.0-x86_64-unknown-linux-gnu
active toolchain
----------------
name: stable-x86_64-unknown-linux-gnu
active because: it's the default toolchain
installed targets:
wasm32-unknown-unknown
x86_64-unknown-linux-gnu
OS version
OS: CachyOS
Kernel: Linux 7.3.0-4-cachyos
- 主要言語
- Rust
- スター
- 7.1k
- フォーク
- 1.1k
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 36
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rustup のほかの issue
-
enhancement O-shell
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Rustup OOMオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
rust-lang/rustup#5173 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
release
難易度 4/5 1〜2日 初心者へのやさしさ 20/100
メンテナーはふだん 1 日以内に返信
-
Solaris support is broken on 1.29.2対応中かも @ChrisDenton が 4 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
rust-lang/rustup#5164 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug wontfix
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
rust-lang/rustup#5151 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
rust-lang/rustup の issue をすべて見る
似ている issue
-
bug dependencies kind:fix priority: P3 ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
shep-pm/shep#1318 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swc-project/swc-next#1165 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Alive24/shea-symphony#574 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信