iOS: a failed saveSource drops the error of deleting its half-made baseline clone

Đang mở
#1,804 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, typescript
Lĩnh vực
devtools

Hướng nghiên cứu

The swallowed error is at src/drivers/ios/seeds.ts:183, where #deleteSeedSimulator(cloneUdid) is called with .catch(() => undefined), and the row is deleted at line 185. Read #deleteSeedSimulator to see how it throws on a failed or timed-out simctl delete, and check how doctor detects orphan sources. Done means the failure is logged with the clone UDID or the orphan is otherwise traceable, and a test covers the failed-delete path.

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

Mô tả

bug:new

src/drivers/ios/seeds.ts:183:

await this.#deleteSeedSimulator(cloneUdid).catch(() => undefined);

#deleteSeedSimulator throws on a non-zero or timed-out simctl delete, and this .catch drops it unlogged. The row is then deleted (seeds.ts:185), so the clone stays in the sources set as an orphan source with no line naming its UDID. doctor still reports it.

Found while triaging #1802.

Written by an agent.

Ngôn ngữ chính
TypeScript
Star
705
Fork
40
Merge trung bình
12 giờ 9 phút
Pull request đã merge (30 ngày)
376

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

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.