Skip to content

Flutter Web/Dwds can lose print messages during a hot restart #86202

Closed

Description

@jonahwilliams

Whille debugging failures in https://github.com/flutter/flutter/pull/85325/checks?check_run_id=3025626159 , I've found that asserting for output can fail unless a message is repeated N times. This may indicate that print statements get dropped somewhere along the line of a hot restart

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    a: qualityA truly polished experience
    P3Issues that are less important to the Flutter project
    c: tech-debtTechnical debt, code quality, testing, etc.
    on Jul 9, 2021
  2. jonahwilliams commented on Jul 9, 2021

    @jonahwilliams
    ContributorAuthor

    To repro, remove the while loop from the generated web hot reload template. This will cause the print statement to made only a single time, which has a high chance of getting lost.

  3. jonahwilliams commented on Aug 8, 2024

    @jonahwilliams
    ContributorAuthor

    Closing as I don't think this is really that important.

  4. github-actions commented on Aug 22, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: qualityA truly polished experiencec: tech-debtTechnical debt, code quality, testing, etc.platform-webWeb applications specificallyteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions