Closed microbit-matt-hillsdon closed 1 year ago
Minimal reproduction:
input("Name? ") # reset when prompted
This also reproduced in the simulator demo page so I've rasised https://github.com/microbit-foundation/micropython-microbit-v2-simulator/issues/100 for the fix. I'll leave this open to track.
Reported in support ticket https://support.microbit.org/helpdesk/tickets/61614 (private)
With the code below running in the simulator, after clicking the simulator Stop button or changing the code, it cannot be restarted.
I can usually get back control by sending Ctrl+D.
while True:
name = input('What is your name? ')
print('Hello', name)
This is now fixed and can be seen in the beta Python editor (which uses the simulator staging environment).
I've responded to the support ticket above.
I'll update the live simulator early next week if there's no issue with beta.
After this restart doesn't work and stop seems to stop but doesn't show the play button again.
I tried a minimal program using
input()
and couldn't immediately reproduce it there.