Closed laurensvalk closed 4 years ago
Describe the bug Output disappears when program restarts
NOTE: Not the previous output, which will of course disappear. But I mean the new output disappears as well.
To Reproduce Make any program, like this one:
#!/usr/bin/env python3 from time import sleep import sys print("This output should stay visible when done.", file=sys.stderr) sleep(5)
While sleep runs, press the new restart feature. The script correctly restarts, however...
Expected behavior
Expected output is below.
---------- This output should stay visible when done. ---------- Completed successfully.
Actual behavior
This is shown briefly
---------- This output should stay visible when done.
but then instead of saying Completed successfully. it reports as if resetting again (which it does not):
Completed successfully.
Restarting: brickrun --directory="/home/robot/test_port_mode" "/home/robot/test_port_mode/main.py" ----------
Screenshots In addition to the above, the extension seems to think it is still running:
Desktop (please complete the following information):
Additional context Can also be reproduced with MicroPython
Updated to reflect that this happens always, not just when crashing.
Describe the bug Output disappears when program restarts
NOTE: Not the previous output, which will of course disappear. But I mean the new output disappears as well.
To Reproduce Make any program, like this one:
While sleep runs, press the new restart feature. The script correctly restarts, however...
Expected behavior
Expected output is below.
Actual behavior
This is shown briefly
but then instead of saying
Completed successfully.
it reports as if resetting again (which it does not):Screenshots In addition to the above, the extension seems to think it is still running:
Desktop (please complete the following information):
Additional context Can also be reproduced with MicroPython