Skip to content

Commit 8e2f122

Browse files
authored
Fix output parsing when using debugger (#124)
1 parent 9129cca commit 8e2f122

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/debugger/debugger.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ async function getBinaryPath(): Promise<string | undefined> {
4444

4545
const output = execFileSync(kaniBinaryPath, commandSplit.args, options);
4646
const outputString = output.toString();
47-
4847
const lines = outputString.trim().split('\n');
48+
// Remove version string before JSON parsing
49+
// NOTE: This is a temporary patch till <https://github.com/model-checking/kani/issues/2649> is fixed.
50+
lines.shift();
51+
52+
// Parse JSON objects from response
4953
const jsonMessages = lines.map((line: string) => JSON.parse(line));
5054

5155
/*

0 commit comments

Comments
 (0)