Skip to content

Devices don't show up if daemon prints lock message #2582

@DanTup

Description

@DanTup

Need a fix similar to flutter/flutter-intellij#4633. In flutter/flutter#57590 Flutter started using \r without \n and we fail to treat it as a newline. This means if the daemon starts up and gets "Waiting for another Flutter process to release the lock" the next line (usually the daemon.connected event) isn't handled correctly, and therefore we never enabled device scanning.

To repro:

  • Delete flutter_tools.snapshot
  • Run flutter doctor in a terminal
  • While doctor is running, open a Flutter project
  • Note status bar always says "No Device" even after the daemon starts up

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions