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

Output disappears when script runs after restart #95

Closed
laurensvalk opened this issue Feb 5, 2020 · 1 comment
Closed

Output disappears when script runs after restart #95

laurensvalk opened this issue Feb 5, 2020 · 1 comment
Labels

Comments

@laurensvalk
Copy link

laurensvalk commented Feb 5, 2020

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

  • Ubuntu 18.04

Additional context
Can also be reproduced with MicroPython

@laurensvalk laurensvalk changed the title Output and Traceback disappear when program crashes after restart completes Output disappears when script runs after restart Feb 5, 2020
@laurensvalk
Copy link
Author

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

@dlech dlech added the bug label Feb 13, 2020
@dlech dlech closed this as completed in 913bde7 Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants