flutter / flutter/devtools

when displaying flutter framework errors, we should detect hyperlinks to code

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

描述

For example, here's some of the text of a 'flutter.error' error message:

```
User-created ancestor of the error-causing widget was:
Container file:///Users/devoncarew/projects/sergiandreplace/flutter_planets_tutorial/lib/ui/common/plannet_summary.dart:51:35
```

We should detect source file references and convert them into links. In IntelliJ, those would link to the source for the user's app. For DevTools, we might want to link to the source in the debugger view? Another option would be to open the file in any associated IDE (also connected to the app via the service protocol). Or, we could link to the devtools debugger view, and in that view, have an option to open a file in a connected IDE, if there was one.

I think the user will want to jump to the source, inspect the problem a bit, and then make a small change to a file, and reload. We'll want to support that effectively in DevTools.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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