NativeScript / NativeScript/nativescript-cli

LiveSync related commands hang when devices for sync are disconnected

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

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

bug debug livesync run unit testing
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.3.0
  • Cross-platform modules: Not applicable
  • Android Runtime: Not applicable
  • iOS Runtime: Not applicable
  • Plugin(s):Not applicable

Describe the bug
Whenever all devices/emulators/simulators that we are using for LiveSync operation are disconnected or CLI is unable to sync changes on them, the command (tns debug, tns run, tns test...) should exit. Instead, it continues its execution and prepares the application.

To Reproduce

  1. Run tns run <platform>
  2. When the operation is running, disconnect all devices/stop all emulators/simulators on which you are syncing.
  3. Command should exit.
    Instead it continues its execution.

Expected behavior
Once all devices used for liveSync are disconnected (or we have errors when trying to sync on them), command should exit and does not give incorrect impression that it still liveSyncs your project.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

tns run <platform> で再現し、その後、すべてのデバイス、エミュレーター、またはシミュレーターが切断された場合に、tns debugtns runtns test が LiveSync をどのように処理するかを比較します。コマンドのエントリーポイントから LiveSync の処理を追跡し、エラーまたはすべての同期対象の喪失によって、準備を続行するのではなくコマンドが終了することを確認します。

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

評価

技術スタック
javascript
領域
cli, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

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

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