compile-run icon indicating copy to clipboard operation
compile-run copied to clipboard

cpp.runSource is not returning promise with gcc 8.2

Open igorosberg opened this issue 4 years ago • 1 comments

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 using namespace std; int main() { cout << "Hello World"; } `;

cpp.runSource(code,{ timeout : 3000, compileTimeout : 3000, stdin : '0', compilationPath : '/usr/bin/g++' }).then(res => console.log(res));

igorosberg avatar Aug 20 '20 12:08 igorosberg

Hey Igorosberg, Can you please try share the error you're getting on the console?

vibhor1997a avatar Sep 20 '20 06:09 vibhor1997a