NativeScript / NativeScript/nativescript-cli

Failure to start LiveSync causes CLI to hang

Ouverte
#3,375 0 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@Mitko-Kerezov y travaille déjà.

Depuis le 19/2/2018.

bug livesync reproducible run severity: low to-be-checked
Langage dominant
JavaScript
Étoiles
1.1k
Forks
204
Merge moyen
1 j 9 h
PR mergées (30 j)
8

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.