fix: extension fixes for publishing
This commit is contained in:
@@ -40,13 +40,13 @@ function generateErrors(code, filePath) {
|
||||
|
||||
let output;
|
||||
try {
|
||||
const waccExePath = `${__dirname}/../wacc-compiler`;
|
||||
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' });
|
||||
const waccExePath = `${__dirname}/wacc-compiler`;
|
||||
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', shell: true, stdio: 'pipe'});
|
||||
} catch (err) {
|
||||
console.log("Error running compiler");
|
||||
output = err.stdout;
|
||||
console.log(output);
|
||||
}
|
||||
}
|
||||
let errors = [];
|
||||
errorRegex = /\(line ([\d]+), column ([\d]+)\):\n([^>]+)([^\^]+)([\^]+)\n([^\n]+)([^\(]*)/g
|
||||
while((match = errorRegex.exec(output)) !== null) {
|
||||
|
||||
Reference in New Issue
Block a user