NativeScript / NativeScript/nativescript-cli

Failure to start LiveSync causes CLI to hang

未关闭
#3,375 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@Mitko-Kerezov 已经在做这个了。

开始于 2018年2月19日。

bug livesync reproducible run severity: low to-be-checked
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。