NativeScript / NativeScript/nativescript-cli
Failure to start LiveSync causes CLI to hang
@Mitko-Kerezov ci sta già lavorando.
Dal 19/2/2018.
- Lingua principale
- JavaScript
- Stelle
- 1.1k
- Fork
- 204
- Merge medio
- 1g 9h
- PR unite (30g)
- 8
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.