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

Enforce the requirement that -check chunks need an exercise.checker #640

Merged
merged 6 commits into from
Jan 21, 2022

Conversation

gadenbuie
Copy link
Member

Fixes #448 by throwing an error at render time if a -check chunk is defined but no exercise.checker is present.

An error is slightly heavy-handed, but this situation is almost certainly an oversight by the tutorial author: if they added a -check chunk they probably intend to check the exercise but have failed to load gradethis or another checking package. It's also hard to discover since the current behavior will still show the "Submit Answer" button, it just won't do anything (as described in #448).

@gadenbuie
Copy link
Member Author

Opened a separate issue at #641 for the failure on macOS-latest.

Copy link
Contributor

@rossellhayes rossellhayes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@gadenbuie gadenbuie merged commit a298d1e into main Jan 21, 2022
@gadenbuie gadenbuie deleted the throw-error-no-checker branch January 21, 2022 19:32
@gadenbuie gadenbuie mentioned this pull request Jan 31, 2022
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

Successfully merging this pull request may close these issues.

silent failure if no orchestrator present
2 participants