Skip to content

Commit

Permalink
enh: use --continue-compilation with all handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranavchiku committed Dec 19, 2024
1 parent 9e76f60 commit dcb8fd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/src/lfortran-accessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ export class LFortranCLIAccessor implements LFortranAccessor {
const flags = [
"--lookup-name",
"--line=" + (line + 1),
"--column=" + (column + 1)
"--column=" + (column + 1),
"--continue-compilation"
];
const stdout = await this.runCompiler(settings, flags, text, "[]");
const results = JSON.parse(stdout);
Expand Down Expand Up @@ -393,7 +394,7 @@ export class LFortranCLIAccessor implements LFortranAccessor {
const diagnostics: Diagnostic[] = [];
let stdout: string | null = null;
try {
const flags = ["--show-errors"];
const flags = ["--show-errors", "--continue-compilation"];
stdout =
await this.runCompiler(settings, flags, text, "[]", true);
if (stdout.length > 0) {
Expand Down Expand Up @@ -466,7 +467,8 @@ export class LFortranCLIAccessor implements LFortranAccessor {
const flags = [
"--rename-symbol",
"--line=" + (line + 1),
"--column=" + (column + 1)
"--column=" + (column + 1),
"--continue-compilation"
];
const stdout = await this.runCompiler(settings, flags, text, "[]");
const obj = JSON.parse(stdout);
Expand Down

0 comments on commit dcb8fd8

Please sign in to comment.