Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken pipe error after interrupt #2423

Closed
aivarannamaa opened this issue Sep 3, 2022 · 2 comments
Closed

Broken pipe error after interrupt #2423

aivarannamaa opened this issue Sep 3, 2022 · 2 comments
Labels
Milestone

Comments

@aivarannamaa
Copy link
Member

  • Run script with import turtle; turtle.exitonclick().
  • Try to interrupt it (needs waiting and serveral Ctrl+C-s)
  • Interrupt idle prompt
  • KeyboardInterrupt appears
  • Press ENTER

Got

Traceback (most recent call last):
  File "/home/aaa/python_stuff/thonny/thonny/shell.py", line 1307, in _submit_input
    get_runner().send_command(
  File "/home/aaa/python_stuff/thonny/thonny/running.py", line 262, in send_command
    response = self._proxy.send_command(cmd)
  File "/home/aaa/python_stuff/thonny/thonny/running.py", line 1040, in send_command
    self._send_msg(cmd)
  File "/home/aaa/python_stuff/thonny/thonny/running.py", line 1047, in _send_msg
    self._proc.stdin.write(serialize_message(msg) + "\n")
BrokenPipeError: [Errno 32] Broken pipe

@aivarannamaa aivarannamaa added this to the 4.0.1 milestone Sep 3, 2022
@aivarannamaa
Copy link
Member Author

Each subsequent ENTER gives the same. The runner doesn't understand that backend has closed.

@aivarannamaa
Copy link
Member Author

Fix this before #2422

@aivarannamaa aivarannamaa changed the title Broken pip error after interrupt Broken pipe error after interrupt Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant