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

A get-out clause for infinite loops when generating variables #713

Open
christianp opened this issue Jul 22, 2019 · 0 comments
Open

A get-out clause for infinite loops when generating variables #713

christianp opened this issue Jul 22, 2019 · 0 comments

Comments

@christianp
Copy link
Member

If generating variables takes ages, the question editor can appear to lock up when you load it. Maybe we should wait until first draw before generating variables, and then have something to catch it taking too long, and abort and show an error message.

@christianp christianp transferred this issue from numbas/Numbas Aug 4, 2022
christianp added a commit that referenced this issue Dec 13, 2023
…page was open, don't autocalculate

When the question editor loads, it sets a local storage key. Once a set
of variables has been generated, that key is removed.

If the key is still set when the page loads, then variable generation
mustn't have finished last time the editor was open at this question, so
don't automatically generate variable values.

This gives authors an opportunity to fix questions with infinite loops
somewhere in a variable's definition.

This doesn't completely solve #713, but makes it possible to get
yourself out of the situation where a set of variables can't be
generated.
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

1 participant