Skip to content

[flutter_tools] "OS Error: The handle is invalid" while trying to set echo mode on STDIN #129198

@christopherfujino

Description

@christopherfujino

On beta/3.12.0 on Windows

StdinException: Error setting terminal echo mode, OS Error: The handle is invalid., errno = 6
at Stdin.echoMode=(stdio_patch.dart:85)
at AnsiTerminal.singleCharMode=(terminal.dart:309)
at TerminalHandler.setupTerminal(resident_runner.dart:1678)
at RunCommand.runCommand.<anonymous closure>(run.dart:748)
at _rootRunUnary(zone.dart:1407)
at _CustomZone.runUnary(zone.dart:1308)
at <asynchronous gap>(async)

Even though we check if stdinHasTerminal right before this

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consoleplatform-windowsBuilding on or for Windows specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions