Skip to content

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

Description

@astamm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions