python-editor-v3 icon indicating copy to clipboard operation
python-editor-v3 copied to clipboard

[Serial] Connection is reset when switching focus

Open florenthemmi opened this issue 3 years ago • 1 comments
trafficstars

Bug Description

The connection is reset when switching focus (changing tab or window for example). It is a pain to debug something.

How To Reproduce

Steps to reproduce the behavior:

  1. Click on "Show serial"
  2. Type something: "import sys"
  3. Change tab
  4. Module "sys" is not loaded anymore (micro:bit has reset) and all the content is cleared

Expected behavior

Same behavior from previous version: https://python.microbit.org/v/2. Please note that on the old version the serial is closed only when clicking on the button "Close Serial".

Environment

Desktop:

  • OS: MacOS 12.5
  • Browser: Chrome
  • Version: 103

florenthemmi avatar Jul 30 '22 17:07 florenthemmi

Thanks @florenthemmi. This is a known issue due to a workaround for https://github.com/microbit-foundation/python-editor-next/issues/89. We'd love to fix this in future.

microbit-matt-hillsdon avatar Sep 12 '22 12:09 microbit-matt-hillsdon