fix: extension fixes for publishing

This commit is contained in:
Guy C
2025-03-14 17:36:51 +00:00
parent af514b3363
commit fde34e88b2
5 changed files with 5 additions and 3 deletions

View File

@@ -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) {