ev3dev / vscode-ev3dev-browser

Visual Studio Code extension for browsing ev3dev devices
https://marketplace.visualstudio.com/items?itemName=ev3dev.ev3dev-browser
MIT License
36 stars 11 forks source link

Output disappears when script runs after restart #95

Closed laurensvalk closed 4 years ago

laurensvalk commented 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):

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:

image

Desktop (please complete the following information):

Additional context Can also be reproduced with MicroPython

laurensvalk commented 4 years ago

Updated to reflect that this happens always, not just when crashing.