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

testwhat_learnr crashes learnr tutorial if solution code is provided but no user code #234

Open
astamm opened this issue Oct 28, 2019 · 0 comments

Comments

@astamm
Copy link

astamm commented Oct 28, 2019

It seems that the -check chunk fails to create the RootState R6 object because it cannot find the formatted_output object since the user did not yet provide code to evaluate by accidentally clicking the Submit Answer button. While it is true that submitting empty solutions should rarely happen, the current behaviour of crashing if it happens is a little bit annoying. This does not happen if the -solution chunk is left empty though, in which case a nice blue message is displayed, informing the user that no solution was provided for this exercise.

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