Skip to content

Can't type into terminal after detaching from app after flutter attach #131511

@eliasyishak

Description

@eliasyishak

Is there an existing issue for this?

Steps to reproduce

This was found on the master channel

  1. Create a new flutter app flutter create my_test and cd into directory
  2. From the terminal, run open ios/Runner.xcworkspace (should open Xcode) per instructions – I ran my app in an iPhone 13 Pro simulator
  3. After app is running on a simulator, open a new terminal window in the my_test directory and run flutter attach – if prompted with multiple devices, select your device; for me it automatically connected to the iPhone 13 Pro simulator since that was the only device
  4. Confirm that you are attached by incrementing the counter app and hot restarting by pressing R in the terminal
  5. Close out of the flutter attach session by either pressing q or d (detach)
  6. Attempt to write in the terminal again to run any command

Expected results

The text you are typing in step 7 should show up in the terminal UI

Actual results

No text is appearing in the terminal... opening a new terminal tab or new window resets the behavior and allows me to type

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
eliasyishak-macbookpro:issue_130623 eliasyishak$ flutter doctor -v
[!] Flutter (Channel master, 3.13.0-12.0.pre.6, on macOS 13.4.1 22F82 darwin-arm64, locale en)
    • Flutter version 3.13.0-12.0.pre.6 on channel master at /Users/eliasyishak/Desktop/flutter
    ! Upstream repository https://github.com/eliasyishak/flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to https://github.com/eliasyishak/flutter.git to dismiss this error.
    • Framework revision e4ce8e0597 (7 hours ago), 2023-07-28 09:36:59 -0400
    • Engine revision e97014c710
    • Dart version 3.2.0 (build 3.2.0-11.0.dev)
    • DevTools version 2.25.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/eliasyishak/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.3)
    • IntelliJ at /Users/eliasyishak/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9161.38/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.80.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.68.0

[✓] Connected device (3 available)
    • iPhone 13 Pro (mobile) • 646FAB1E-3AA9-4962-B9D1-533B3F46D67F • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 13.4.1 22F82 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 115.0.5790.114

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Labels

P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtriaged-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