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

オープン
#1,804 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
ios, typescript
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
705
フォーク
40
平均マージ
12時間 9分
マージ済み PR(30日)
376

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。