Content-Length: 281971 | pFad | https://github.com/flutter/flutter/issues/157509

1A Unexpected Behavior When Terminating Flutter Commands with Ctrl + C · Issue #157509 · flutter/flutter · GitHub
Skip to content

Unexpected Behavior When Terminating Flutter Commands with Ctrl + C #157509

@habeshacoder

Description

@habeshacoder

Type of Request

bug

Infrastructure Environment

System Type: 64-bit operating system, x64-based processor.
Operating System: Windows 11 Pro.
Terminal Application: Command Prompt / PowerShell.
Frequency of the Issue: This has never worked for me since I started using Flutter.

Screenshot 2024-10-24 173936

flutter doctor result if needed:
image

What is happening?

When running a Flutter command in the terminal, if the command starts a task and I press Ctrl + C, the terminal prompts me with:
Terminate batch job (Y/N)?

  • If I press Y, the batch job stops as expected.
  • If I press N, the prompt appears to ignore my input, and the batch job still stops unexpectedly, rather than continuing execution.

Steps to reproduce

  1. Open a terminal window.
  2. Execute any Flutter command that starts a long-running task (e.g., flutter run, flutter build, etc.).
  3. While the task is running, press Ctrl + C.
  4. When prompted with Terminate batch job (Y/N)? press N.
  5. Observe that the batch job stops instead of continuing.

Expected results

When pressing N in response to the prompt, the Flutter command should continue executing as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectteam-toolOwned by Flutter Tool teamtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/157509

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy