Skip to content

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

Closed

Description

@kenzieschmoll

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

Activity

  1. added
    type-bugSomething isn't working
    P1high priority issues at the top of the work list, actively being worked on.
    on Feb 8, 2024
  2. kenzieschmoll commented on Feb 8, 2024

    @kenzieschmoll
    MemberAuthor

    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.

  3. kenzieschmoll commented on Mar 4, 2024

    @kenzieschmoll
    MemberAuthor

    Some repro details shared on #7305.

  4. elliette commented on Feb 13, 2025

    @elliette
    Member

    Update: With #8385 we're finally starting to get some useful stack traces for these errors:

    Unfortunately it's not the most helpful (just confirms what we suspected about where the error is coming from). However, I think we can make some changes here to have a more helpful error to tell us what's going wrong.

  5. kenzieschmoll commented on Mar 10, 2025

    @kenzieschmoll
    MemberAuthor

    I just closed 9 more duplicates of this issue. We should be sure to fix this before the next beta cut.

  6. elliette commented on Oct 7, 2025

    @elliette
    Member

    NOTE: Fixed by #9104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1high priority issues at the top of the work list, actively being worked on.devtools-debugger-screenIssues with the Debugger screenproduct-qualityIssues related to product quality.type-bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions