Closed Holmes98 closed 5 months ago
This is probably outside the scope of this pr but in future it may be good to not display the message This submission has not finished judging. Refresh this page in a minute or two to see the submission's score.
when judging encounters an error (be it evaluator not compiling or some other error in the worker).
Yeah, the submission page doesn't really handle judging errors. I've committed some improvements in 9e7aa3e.
CI is currently failing; need to merge #266 first.
Ugh, now coveralls is failing...
Seems to be fixed now
Deployed and converted all existing C++ evaluators that were previously using cint.rb to use this instead.
This adds an optional language field to the Evaluator class. All existing/new evaluators will default to having no language, which maintains the existing functionality (script is executed as-is).
Note that C++ evaluators were already "supported" through cint.rb, but that is much slower as it requires the evaluator to be recompiled on every test case. That functionality can be considered deprecated and removed later, after fixing existing evaluators.
Also note that for evaluators with no language, Pygments will attempt to automatically detect the language based on the code (see here).