ionic-team / ionic-team/ionic-cli

Cannot run ionic serve through WSL

Aberta
#4,243 1 comentário 0 reações 0 responsáveis Ver no GitHub
triage
Linguagem predominante
TypeScript
Estrelas
2k
Forks
682
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**Description:**

This might be similar issue than #3991 but the symptoms seem slightly different so figured might be best to create a separate issue.

**Steps to Reproduce:**

- Install project through WSL in Windows;
- Run ionic serve one time to turn on server;
- Hit CTRL+C to terminate the server;
- Run ionic serve again;

**Output:**

There are two types of symptoms:

1. Will get a segmention fault (core dumped) error;
2. Whole OS will crash.

Seems segmentation fault happens immediately after turning on the server for the second time.
Whole OS crash happens if trying a third or fourth time.

**My `ionic info`:**

```
Ionic:

Ionic CLI : 5.4.10 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.4.0-dev.201904251558.2457a23
@angular-devkit/build-angular : 0.13.8
@angular-devkit/schematics : 7.2.3
@angular/cli : 7.2.3
@ionic/angular-toolkit : 1.2.3

Capacitor:

Capacitor CLI : 1.0.0-beta.22
@capacitor/core : 1.0.0-beta.19

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v8.10.0 (/usr/bin/node)
npm : 3.5.2
OS : Linux 4.4
```

**Other Information:**

Using latest WSL on latest Windows.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start with the `ionic serve` command and compare its repeated startup and shutdown behavior with issue #3991. Reproduce the second and subsequent runs under WSL using the reported environment; done means repeated serving no longer causes a segmentation fault or OS crash.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
linux, node.js, typescript
Domínio
cli, operating-systems
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
28/100

Receba novas issues na sua caixa de entrada

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