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

Infinite loop locks up assignment #18

Open
aarchiba opened this issue Oct 7, 2022 · 0 comments
Open

Infinite loop locks up assignment #18

aarchiba opened this issue Oct 7, 2022 · 0 comments

Comments

@aarchiba
Copy link

aarchiba commented Oct 7, 2022

If a student creates an infinite loop in a submitted answer, the assignment reads "Your answer is being marked. Please wait." and hangs there, apparently forever. Other questions on the same page also seem not to be able to be run until the page is reloaded.

I realize that it's not simple to handle this case, but from a user interface point of view it would help if hitting any "submit" button interrupted the interpreter, possibly yielding a KeyboardInterrupt exception in the infinite loop, or just killing the interpreter. The problematic submission could then report that it had been interrupted, and the user would be able to decide whether waiting longer would be a good idea.

This came up because I'm writing a question where users identify and fix common mistakes in example code, and I'd like to highlight forgetting to update the variable that triggers exit from a while loop.

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