Windows: `atlas doctor` "new terminal" check from the registry Path

Đang mở
#340 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell, rust
Lĩnh vực
cli, developer-experience

Hướng nghiên cứu

Start at the atlas doctor new-terminal check and the existing install::has_user_path helper, which already reads the user Path through PowerShell. Read how terminal_probe invokes and parses a shell, then run the doctor on Windows and inspect HKCU and system Path entries. Done means the check resolves atlas.exe on both Paths and confirms it points at %USERPROFILE%\.atlas\bin\atlas.exe (or the installer copy), with pwsh parsing covered by a test if that probe path is used.

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

Mô tả

good first issue os: windows type: feature

atlas doctor (#338) checks whether a new terminal finds atlas by starting the account's shell the way a terminal does. On Windows a new terminal takes its PATH from the registry (HKCU\Environment\Path plus the system Path), not from a shell rc, so the check currently reports "not checked on Windows yet" as a warning.

Do it properly: read user and system Path (install::has_user_path already queries the user one through PowerShell), resolve atlas.exe along them, and check that it is %USERPROFILE%\.atlas\bin\atlas.exe (or the installer's copy). Also verify terminal_probe's output parsing with pwsh if we ever probe a shell there. Roadmap #289.

Ngôn ngữ chính
Rust
Star
3
Fork
1
Merge trung bình
9 giờ 51 phút
Pull request đã merge (30 ngày)
310

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 codeatlasdev/atlas

Tất cả issue của codeatlasdev/atlas

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.