flutter / flutter/devtools

Warn users at DevTools startup for Flutter version incompatibility

未关闭
#4,734 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
P3
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

From @jacob314:

> One thing we might want to do is actively fail at startup if you happen to use DevTools with an incompatible version of Flutter. That could happen if someone launched DevTools from one Flutter SDK and connected to a Flutter app from a different Flutter SDK. With this and similar changes we will start mysteriously failing when this happens. Users will assume DevTools is flaky rather than understanding they used an incompatible Flutter unless we warn them.

For this, we will need a way to grab the flutter version that DevTools was built with. We no longer have a flutter-version.txt file, so we will need a different solution to get this information.

贡献指南

打开贡献指南

调研方向

首先定位 DevTools 的启动处理逻辑以及连接到 Flutter 应用的代码,然后调查如何在不使用 flutter-version.txt 的情况下获取用于构建 DevTools 的 Flutter 版本。完成标准是:在启动时检测到不兼容的 Flutter SDK,并向用户显示清晰的警告,说明不兼容的原因。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, devtools, flutter
领域
devtools
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。