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

Fix line of code not shown on invalid judge output #5205

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Nov 28, 2023

This pull request fixes a line of code not being shown when the judge returns out of bounds column indexes.

Eg of submission with the issue: https://dodona.be/nl/submissions/16080236/#code
Here the second line is hidden.
image

The issue is not reproducible as the judge has already been fixed, but from the error message I discovered the issue.

Although this was caused by the judge returning to many columns, we should deal with such case more gracefully. With the new fix, a column number out of bounds will be treated as marking the whole line.

@jorg-vr jorg-vr added the bug Something isn't working label Nov 28, 2023
@jorg-vr jorg-vr self-assigned this Nov 28, 2023
@jorg-vr jorg-vr requested a review from a team as a code owner November 28, 2023 14:58
@jorg-vr jorg-vr requested review from bmesuere and niknetniko and removed request for a team November 28, 2023 14:58
@pdawyndt
Copy link
Contributor

This solution is literally: the whole shebang

@jorg-vr jorg-vr merged commit 186a4ae into main Nov 29, 2023
15 checks passed
@jorg-vr jorg-vr deleted the fix/line-not-shown branch November 29, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants