flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 326 forks source link

Meta tracking issue: "Reporting error: Failed to parse package:xyz/main.dart" #7192

Open kenzieschmoll opened 8 months ago

kenzieschmoll commented 8 months ago

We have gotten several reports of this error. The stack traces are minified so they aren't helpful, but looks like it is coming from codeview_controller.dart based on the String: https://github.com/flutter/devtools/blob/master/packages/devtools_app/lib/src/screens/debugger/codeview_controller.dart/#L251

kenzieschmoll commented 8 months ago

One question we should consider once we have a repro is whether we want to be notifying the user with this parsing error happens (notifyUser: true is set currently). If this error is expected (potentially on a hot restart or app disconnect?) then we might want to fail gracefully and not give the users an error notification that they can report.

kenzieschmoll commented 7 months ago

Some repro details shared on https://github.com/flutter/devtools/issues/7305.