Failure to start LiveSync causes CLI to hang

Aberta
#3,375 0 comentários 0 reações 1 responsável Ver no GitHub

@Mitko-Kerezov já está trabalhando nisso.

Desde 19/2/2018.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

bug livesync reproducible run severity: low to-be-checked
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.

Linguagem predominante
JavaScript
Estrelas
1.1k
Forks
204
Merge médio
1d 9h
PRs com merge (30d)
8

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de NativeScript/nativescript-cli

Todas as issues de NativeScript/nativescript-cli

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.