dodona-edu / universal-judge

Universal judge for educational software testing
https://docs.dodona.be/en/tested
MIT License
9 stars 4 forks source link

Improve representation of (JavaScript) compilation errors #366

Closed pdawyndt closed 1 year ago

pdawyndt commented 1 year ago

Suggestions for improvements on JavaScript compilation errors, some of which might also apply to compilation errors for other languages:

Example: submission 14084483

De compiler produceerde volgende uitvoer op stderr:
Traceback:/home/runner/workdir/common/js:102
            for(let [dr, dk] of Doolhof.richting2beweging.values())) {
                                                                   ^

SyntaxError: Unexpected token ')'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at checkSyntax (node:internal/main/check_syntax:67:3)

Node.js v18.16.0