flutter / flutter/devtools

Infinite loading on Dart app. Working fine on Flutter

Offen
#6,326 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
bug P2
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.