NativeScript / NativeScript/nativescript-cli
Failure to start LiveSync causes CLI to hang
@Mitko-Kerezov đang làm issue này rồi.
Từ ngày 19/2/2018.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 204
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Mô tả
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:
tns create myApp --tsccd myAppecho asd >> app/app.ts// this will cause the transpile errortns 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.