hedy icon indicating copy to clipboard operation
hedy copied to clipboard

🪲 `Stop program` leaves leftovers for next `run code` execution

Open nabero opened this issue 11 months ago • 3 comments

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

What machine and browser you were using (optional) Firefox 124 on Linux

nabero avatar Mar 17 '24 12:03 nabero

We are aware of this issue, but it's really hard to fix, maybe we'll address this in the future.

jpelay avatar Mar 19 '24 00:03 jpelay

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: @.***>

nabero avatar Mar 19 '24 10:03 nabero

Is this then the same problem as having the output repeat x times?

In level 1:

ask type a message
echo message:
  1. Run code
  2. Stop program
  3. Run code
  4. Stop program
  5. Run code
  6. Type "Repeat 3 times"

Output:

message: Repeat 3 times
message: Repeat 3 times
message: Repeat 3 times

AnneliesVlaar avatar Apr 02 '24 18:04 AnneliesVlaar