Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Fish completions for rustup suggest files alongside subcommands

Đang mở Phù hợp với người mới
#5,172 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
fish, rust
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu với phần triển khai rustup completions fish và kiểm tra cách nó tạo đầu ra gợi ý lệnh cho fish; issue cũng đề xuất thêm complete -c rustup -f. Kiểm tra các bài kiểm thử hoặc fixture gợi ý lệnh hiện có cho đầu ra của fish. Hoàn tất khi nhấn Tab sau rustup sẽ gợi ý các lệnh con mà không liệt kê tệp hoặc thư mục.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
7.1k
Fork
1.1k
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
36

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rust-lang/rustup

Tất cả issue của rust-lang/rustup

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.