NativeScript / NativeScript/nativescript-cli

Failure to start LiveSync causes CLI to hang

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

@Mitko-Kerezov がすでに取り組んでいます。

2018年2月19日 から。

bug livesync reproducible run severity: low to-be-checked
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

The problem

Whenever starting LiveSync on a new project if LiveSync is unable to start (for example a TypeScript error is present) then CLI tries to exit, but hangs because it has child processes attached to it.

Steps to reproduce

On a Unix OS:

  1. tns create myApp --tsc
  2. cd myApp
  3. echo asd >> app/app.ts // this will cause the transpile error
  4. tns run android // could be ios just as well

At this point CLI fails to start LiveSync, because there is a syntax error in the main TypeScript file and the message Unable to apply changes on device: XXXXXXXXXXXXXX. Error is: TypeScript compiler failed with exit code 1. is displayed, however the process does not finish and the user is forced to break execution with Ctrl-C.

This issue is caused by the various child processes that CLI spawns like the one for communication with iOS devices or analytics.

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

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

はじめの一歩

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

評価

この issue はまだ評価されていません。

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

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