-
Notifications
You must be signed in to change notification settings - Fork 289
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
🪲 Improve long program warning for sleep programs and increase time #5576
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
869071a
remove if for sleep detection
Felienne 51a5c48
up the timers
Felienne bd8ffdf
sneak in a fix for a comment that just occurred to me
Felienne 6d43ed9
🤖 Automatically update generated files
Felienne 7e6ad1a
move threshold to front end
Felienne 553d5e9
Merge branch 'improve-long-program' of https://github.com/hedyorg/hed…
Felienne b757ce9
🤖 Automatically update generated files
Felienne dabf710
push bundles and simplify sleep detection
Felienne 44c0cea
Merge branch 'improve-long-program' of https://github.com/hedyorg/hed…
Felienne cd8f2b7
Note to self
Felienne 8fc445b
fix in the backend
Felienne 412b05b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if needs to go in any case, because otherwise has_sleep will never be set on programs above 7, but I am not sure what to do with the rest.
It is a bit of magic why we need to send the list of sleep lengths to the frontend. If needed, I can probably get them from the parser, but you don't always know upfront how long they will be (it a variable is involved)
I am not even sure we need all of this complex code for the sleep prompt?
I think we could do it a lot easier in the Skulpt execution? Because I am sure the interpreter knows when to sleep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I prefer to ship this as we have it now, and ask Jesus (in due time) to solve this in the interpreter, because this is annoying people.