compile-run
compile-run copied to clipboard
cpp.runSource is not returning promise with gcc 8.2
I have a Centos OS 8 running gcc 8.2. Most time when I try to run the code below, runSource does not return the promise as expected. However, it is lauching a event error that is not catched by the catch statement.
const {cpp} = require('compile-run')
var code = `
#include
cpp.runSource(code,{ timeout : 3000, compileTimeout : 3000, stdin : '0', compilationPath : '/usr/bin/g++' }).then(res => console.log(res));
Hey Igorosberg, Can you please try share the error you're getting on the console?