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

[BUG] combining sleep with at random does not work (level 3) #2431

Closed
juliabolt opened this issue Apr 4, 2022 · 7 comments
Closed

[BUG] combining sleep with at random does not work (level 3) #2431

juliabolt opened this issue Apr 4, 2022 · 7 comments

Comments

@juliabolt
Copy link
Collaborator

Describe the bug
Also see issue #1938 with a similar problem. In this case however, when combining sleep with at random, in level 3, we get an error.

Paste the Hedy code & level

list is 1, 2, 3
print hi
sleep list at random
print bye

Level 3

Expected behavior
I would expect that it works, that list at random would be replaced by one of the elements, so a number, which would then determine how long sleep would happen.

@juliabolt
Copy link
Collaborator Author

Thanks @thjazi39 for bringing this to my attention

@thjazi39
Copy link
Collaborator

thjazi39 commented Apr 4, 2022

It surely has something to do with this issue: #1753

@Robernc
Copy link

Robernc commented Apr 8, 2022

This is definitely a related issue. It seems like sleep has an issue handling variable/s and only works directly with integers.

@Liz433
Copy link

Liz433 commented Apr 11, 2022

Hi! I would like to try and fix this issue! Currently working on it if that is ok

@Felienne
Copy link
Member

Hi! I would like to try and fix this issue! Currently working on it if that is ok

Absolutely!

@juliabolt
Copy link
Collaborator Author

I tested this again, and now it works, so I think this issue has been solved?

@Felienne
Copy link
Member

Yes, closed by #2697, thanks for checking @juliabolt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants