-
-
Notifications
You must be signed in to change notification settings - Fork 201
Failure to start LiveSync causes CLI to hang #3375
Copy link
Copy link
Open
Labels
buglivesyncreproduciblerunDescribes issues related to run commandDescribes issues related to run commandseverity: lowto-be-checkedIssues that might be resolved in a previous release and need to be tested or clarified furtherIssues that might be resolved in a previous release and need to be tested or clarified further
Metadata
Metadata
Assignees
Labels
buglivesyncreproduciblerunDescribes issues related to run commandDescribes issues related to run commandseverity: lowto-be-checkedIssues that might be resolved in a previous release and need to be tested or clarified furtherIssues that might be resolved in a previous release and need to be tested or clarified further
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 wellAt 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.