flutter / flutter/devtools

Infinite loading on Dart app. Working fine on Flutter

Đang mở
#6,326 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug P2
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.