hedy
hedy copied to clipboard
🪲 `Stop program` leaves leftovers for next `run code` execution
Describe the bug
When the stop execution
button is triggered, then the run code
button is clicked again, some remaining instructions from the first execution are not cleared up and are executed as part of the new execution.
It also seems that when How old are you
is asked when executed on the second execution, it's not possible to stop execution anymore (see screenshot).
Paste the Hedy code & level
ask what's your name ?
echo your name is
ask how old are you ?
echo you are
Steps
# run code
ask what's your name ?
echo your name is
# type Foo [enter]
> your name is Foo
# stop execution
# run code
ask what's your name ?
echo your name is
# type Bar [enter]
> you are Bar
> your name is Bar
Add a screenshot (optional)
What machine and browser you were using (optional) Firefox 124 on Linux
We are aware of this issue, but it's really hard to fix, maybe we'll address this in the future.
Thanks, I didn't find a matching issue. Any pointer on what needs to be done and blockers for a fix ?
Le mar. 19 mars 2024, 01:00, Jesús Pelay @.***> a écrit :
We are aware of this issue, but it's really hard to fix, maybe we'll address this in the future.
— Reply to this email directly, view it on GitHub https://github.com/hedyorg/hedy/issues/5271#issuecomment-2005365450, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAODTGFH2VZGOFWBDMOP62DYY552BAVCNFSM6AAAAABE2EXULOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBVGM3DKNBVGA . You are receiving this because you authored the thread.Message ID: @.***>
Is this then the same problem as having the output repeat x times?
In level 1:
ask type a message
echo message:
- Run code
- Stop program
- Run code
- Stop program
- Run code
- Type "Repeat 3 times"
Output:
message: Repeat 3 times
message: Repeat 3 times
message: Repeat 3 times