when displaying flutter framework errors, we should detect hyperlinks to code
- Lingua principale
- Dart
- Stelle
- 1.7k
- Fork
- 404
- Merge medio
- 6g 17h
- PR unite (30g)
- 18
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing how DevTools displays flutter.error text and how source locations are exposed through the service protocol. Compare linking to the debugger view with opening files in a connected IDE; done means source references such as file:///...:51:35 become actionable links with a clear destination.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- devtools
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100