Provide a clearer message if a user connects to a DartVM that isn't connected to Flutter Tools.
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 404
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 18
描述
From a user on discord:
> Today, i tried something new...
> i ran an android app with a view in flutter (add-to-app) and observed that when the FlutterEngine is initialised, i get a log saying flutter: Observatory listening on http://127.0.0.1:38177//. I tried to open this in Flutter Devtools (by installing Termux, exposing this port to the internet using ngrok and opening this in Devtools) but got a message saying "This application does not have any tabs".
> What is different when the app is run using flutter run and when the debug apk is run? if there is no way to open the observatory, why the log?
The problem is the Dart VM likely cannot evaluate expressions as Flutter tools isn't attached to it. We see this combined with a VM that appears to be debug mode and get confused and show zero tabs instead of showing a message like "VM Service not fully initialized, run `flutter attach` so that you can debug.
贡献指南
调研方向
首先,跟踪 Dart VM 未完全连接到 Flutter Tools 时对 "This application does not have any tabs" 消息的处理。确认 VM-service 的初始化状态,并更新面向用户的结果以说明需要使用 `flutter attach`;完成的标准是此情况不再显示为空的标签页集合。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart
- 领域
- developer-experience, devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100