python-editor-v3
python-editor-v3 copied to clipboard
[Serial] Connection is reset when switching focus
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:
- Click on "Show serial"
- Type something: "import sys"
- Change tab
- 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
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.