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

rust-analyzer fallback recurses through Homebrew’s wrapper

Đang mở
#5,133 1 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Read the issue’s Homebrew discussion #7111 and linked Homebrew PR #315977 to understand the wrapper’s settings override and proposed approaches. The issue names no rustup files or tests, and the solution is explicitly open for discussion; first determine an agreed solution shape before locating implementation entry points. Done means rustup and Homebrew can meet the settings requirement without recursive fallback.

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

Mô tả

enhancement O-macos
Problem you are trying to solve

When rustup is installed via homebrew and the active toolchain lacks rust-analyzer, homebrew-installed rustup selects its own shell wrapper as an external fallback and repeatedly executes it:

$ rust-analyzer -help
info: `rust-analyzer` is unavailable for the active toolchain
info: falling back to "/opt/homebrew/opt/rustup/bin/rust-analyzer"
...
error: infinite recursion detected

The proximate cause is that homebrew wraps rustup’s proxies to set RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS. rustup's fallback search excludes executables that are the same file as rustup, but the shell wrapper is a distinct file, so it passes that check, resulting in infinite recursion.

removing homebrew's binstubs avoids this recursion but those binstubs exist to override rustup's settings file, so removing the binstubs also requires patching rustup (take a look at the linked PR).

Is there another way to meet brew's needs? Should we add one? I'd be happy to send a patch, but I'd like some input on the shape of the solution (compile time env var?).

The original report is in Homebrew discussion #7111.

Solution you'd like

Up for discussion.

Notes

No response

Ngôn ngữ chính
Rust
Star
7.1k
Fork
1.1k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
45

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.