mousetail / Byte-Heist

Yet Another Golfing Site
https://byte-heist.com
GNU General Public License v3.0
7 stars 5 forks source link

Bug: Judge for compiled languages if compilation fails #31

Open mousetail opened 2 days ago

mousetail commented 2 days ago

From @RubenVerg in the discord:

compile errors in rust break the runner:

error: Uncaught (in promise) NotFound: Failed to spawn '/tmp/output': No such file or directory (os error 2): No such file or directory (os error 2): No such file or directory (os error 2)
    const process = command.spawn();
                            ^
    at spawnChildInner (ext:runtime/40_process.js:184:17)
    at spawnChild (ext:runtime/40_process.js:208:10)
    at Command.spawn (ext:runtime/40_process.js:483:12)
    at run (file:///scripts/runner.ts:37:29)
    at file:///scripts/runner.ts:71:54
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async Code.on_run_callback [as onRunCallback] (file:///scripts/runner.ts:96:16)
    at async Code.runCode (file:///scripts/runner-lib.ts:107:24)
    at async default (data:text/typescript,export%20type%20Pass......lures()%3B%0D%0A%7D):141:16)
    at async file:///scripts/runner.ts:106:22

presumably it's trying to run an executable that doesn't exist because it didn't compile