devtools icon indicating copy to clipboard operation
devtools copied to clipboard

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

Open kenzieschmoll opened this issue 1 year ago • 2 comments

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 avatar Feb 08 '24 18:02 kenzieschmoll

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 avatar Feb 08 '24 18:02 kenzieschmoll

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

kenzieschmoll avatar Mar 04 '24 18:03 kenzieschmoll