Skip to content

Commit

Permalink
more intelligrade stuff: synchronized annotations list, correct annot…
Browse files Browse the repository at this point in the history
…ation lines
  • Loading branch information
Feuermagier committed Sep 16, 2024
1 parent b575cb5 commit b55e327
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Assessment(
result.feedbacks());

// Unpack the result
this.annotations = MetaFeedbackMapper.parseMetaFeedbacks(feedbacks, config);
this.annotations = Collections.synchronizedList(MetaFeedbackMapper.parseMetaFeedbacks(feedbacks, config));
this.testResults = feedbacks.stream()
.filter(f -> f.type() == FeedbackType.AUTOMATIC)
.map(TestResult::new)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public static AutograderStats runAutograder(
var position = problem.getPosition();
assessment.addAutograderAnnotation(
mistakeType,
position.path().toString(),
position.startLine(),
position.endLine(),
"src/" + position.path().toString(),
position.startLine() - 1,
position.endLine() - 1,
autograder.translateMessage(problem.getExplanation()));
}

Expand Down

0 comments on commit b55e327

Please sign in to comment.