Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Fish completions for rustup suggest files alongside subcommands

オープン 初心者向け
#5,172 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
fish, rust
領域
cli

調査の方向性

rustup completions fish の実装から始め、fish の補完出力をどのように生成するかを確認してください。issue では complete -c rustup -f の追加も提案されています。fish の出力に関する既存の補完テストまたは fixture を確認してください。rustup の後に Tab キーを押すと、ファイルやディレクトリを列挙せずにサブコマンドが候補として表示される状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Verification
Problem

In fish shell, when you use an autocomple using tab you're getting directories and files alongside rustup subcommands.

Image

As i know, rustup doesn't use any directories or files as arguments, so i recognize it as a bug

Steps
  1. Setup fish autocomplete. If you are on linux you can run rustup completions fish rustup > ~/.config/fish/completions/rustup.fish
  2. 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:

Image

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-lang/rustup のほかの issue

rust-lang/rustup の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。