Skip to content

bug: windows: panic: read coninput events: The I/O operation has been aborted because of either a thread exit or an application request. #1324

Closed
@aymanbagabas

Description

Related: antonmedv/walk#160 (comment)
Related: #1305

Describe the bug
When a program is using tea.Exec, Bubble Tea doesn't handle cancelIO errors while reading input events, giving the following error.

The I/O operation has been aborted because of either a thread exit or an application request.

Setup
Please complete the following information along with version numbers, if applicable.

  • OS Windows
  • Shell pwsh
  • Terminal Emulator Windows Terminal Preview
  • Terminal Multiplexer none

To Reproduce
Steps to reproduce the behavior:

  1. go run github.com/antonmedv/walk@v1.11.0
  2. Edit a file
  3. Quit the subprocess
  4. See error

Source Code
This is related to inputreader_windows.go and key_windows.go.

Expected behavior
Shouldn't give an error and Bubble Tea should cancel the IO gracefully

Screenshots

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions