[Feature] Expo Go download and installation errors hide the underlying failure details

Đang mở Phù hợp với người mới
#3,030 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
78/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ệ
react-native, typescript, vscode
Lĩnh vực
devtools, testing

Hướng nghiên cứu

Tìm phần xử lý lỗi tải xuống và cài đặt cho Android và iOS trong lệnh “Download and install Expo Go on simulator or device”, sau đó đọc cách cơ chế NestedError hiện có được sử dụng. Thêm các bài kiểm thử hồi quy cho lỗi tải xuống và cài đặt trên cả hai nền tảng; công việc hoàn tất khi các lỗi có ngữ cảnh giữ nguyên ngoại lệ ban đầu và hiển thị thông báo của ngoại lệ đó để hỗ trợ khắc phục sự cố.

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

Mô tả

enhancement

Problem

The “Download and install Expo Go on simulator or device” command replaces
download and installation exceptions with generic messages:

  • “Failed to download Expo Go.”
  • “Failed to install Expo Go.”

The original exception is discarded in both the Android and iOS flows.
This hides details needed to diagnose failures, such as network errors,
permission issues, insufficient disk space, or ADB/simulator errors.

Steps to reproduce

  1. Run the “Download and install Expo Go on simulator or device” command
    in an Expo-managed project.
  2. Select Android or iOS.
  3. Trigger a download failure, or select Auto and trigger an installation failure.
  4. Inspect the reported error.

Actual behavior

The command reports a generic failure message without preserving the
underlying exception.

Expected behavior

Keep the contextual download/installation failure message while preserving
the original exception and making its details available for troubleshooting.

Suggested solution

Use the existing NestedError mechanism to retain the original exception
as innerError and include its message in the contextual error.
Add regression tests for download and installation failures on both platforms.

Ngôn ngữ chính
TypeScript
Star
2.7k
Fork
303
Merge trung bình
19 giờ 16 phút
Pull request đã merge (30 ngày)
29

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 microsoft/vscode-react-native

Tất cả issue của microsoft/vscode-react-native

Issue tương tự

Thêm issue về TypeScript

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.