softwareconstruction240 / autograder

Autograder for BYU's CS 240 Chess project
https://cs240.click
2 stars 2 forks source link

Backend: Identify Common Issues — Using Extra Imports #364

Closed frozenfrank closed 2 months ago

frozenfrank commented 4 months ago

This is a sub-issue of #266 that describes and defines one issue that can be solved independent of the others.

Overview

The fail to compile error already contains the exact output, and if students looked carefully, they would be able to figure this one out. However, they often don't realize that used additional imports. Students who run into this error sometimes used AI tools to write their code, which assumed they would have access to package that they don't.

Detection Strategy

Scan packaging input and point out the extra packages they can't use.

Implementation Details

When there is a problem packaging the repo, scan the error output for regexes that indicate this issue. Then warn the student that this is an issue they need to fix. We can still refer to the generated error output for the actual line and column definitions of the packages not allowed.