flutter / flutter/devtools

Infinite loading on Dart app. Working fine on Flutter

Abierto
#6,326 2 comentarios 1 reacción 0 asignados Ver en GitHub
bug P2
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

Hello,
I'm trying to load the DevTools for a Dart program but I get and infinite loading screen.
I don't know what is wrong, as it is working perfectly fine when running a Flutter app (v3.13.2)
I've tried with Dart (from Flutter) and with a clean installation of Dart stable 3.1.1, both failing

### Steps to reproduce:

Dart 3.1.1

```sh
dart run --observe bin/main.dart
```

Open the url that appears after running the program.

```
The Dart VM service is listening on http://127.0.0.1:8181/Xdx1RcwliL8=/
The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/Xdx1RcwliL8=/devtools?uri=ws://127.0.0.1:8181/Xdx1RcwliL8=/ws
```
### System information

Dart 3.1.1
Flutter 3.13.2
Linux 64 bits

### main.dart
```dart
import 'dart:io';

void main() {
print("hello world");

while (true) {
print("Wait input");
final input = stdin.readLineSync();
}
}
```

### Browser console

That "error" also shows up when loading a Flutter devtools session, so I'm guessing that is not the cause

![image](https://github.com/flutter/devtools/assets/22084723/b7c893f0-f4a3-46a3-9f9f-395f77fee8e9)

### Loading screen
![image](https://github.com/flutter/devtools/assets/22084723/5d15b56f-5978-4fe6-87fc-690c80a02373)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.