Skip to content

Commit

Permalink
Add more logging messages to find reason for failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cedihegi committed Mar 5, 2023
1 parent 56350e0 commit 8ec2df6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/infoCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class InfoCollection implements vscode.CodeLensProvider, vscode.CodeActio
private resultOnTabChangeRegister: vscode.Disposable;

private decorations: Map<string, vscode.TextEditorDecorationType[]>;
// for proc_defs we also have a boolean on whether these values
// for procedureDefs we also have a boolean on whether these values
// were already requested (for codelenses)
private procedureDefs: Map<string, FunctionRef[]>;
private functionCalls: Map<string, FunctionRef[]>;
Expand Down
3 changes: 2 additions & 1 deletion src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ describe("Extension", () => {
"diagnostics": [] as unknown as Diagnostic[]
};
}

console.log("Expected: " + JSON.stringify(expectedDiagnostics.diagnostics, null, 4));
console.log("Actual: " + JSON.stringify(plainDiagnostics, null, 4));
expect(plainDiagnostics).to.deep.equal(expectedDiagnostics.diagnostics);
});
});
Expand Down
5 changes: 3 additions & 2 deletions src/types/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export class VerificationDiagnostics implements PrustiMessageConsumer {
}

public reset(): void {
util.log("Resetting verification diagnostics")
this.diagnostics = new Map<string, vscode.Diagnostic[]>();
this.diagnosticCollection.clear();
}
Expand Down Expand Up @@ -246,13 +247,13 @@ export class VerificationDiagnostics implements PrustiMessageConsumer {

public processMessage(msg: Message, vArgs: VerificationArgs): void {
const diag = parseDiagnostic(msg, vArgs.targetPath);
util.log("Consumed rustc message");
util.log("Consumed rustc message: " + msg.message);
this.add(diag);
}

public processCargoMessage(msg: CargoMessage, vArgs: VerificationArgs): void {
const diag = parseDiagnostic(msg, vArgs.targetPath);
util.log("Consumed cargo message");
util.log("Consumed cargo message: " + msg.message.message);
this.add(diag);
}
}
2 changes: 1 addition & 1 deletion src/verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class VerificationManager {
},
...config.extraPrustiEnv(),
};
util.log("Prusti client environment: " + JSON.stringify(prustiEnv));
util.log("Prusti client environment: " + JSON.stringify({...versionDependentArgs, ...config.extraPrustiEnv}, null, 4));
const cwd = isCrate ? vArgs.targetPath : path.dirname(vArgs.targetPath);
const onOutput= this.buildOutputClosure(vArgs);
const output = await util.spawn(
Expand Down

0 comments on commit 8ec2df6

Please sign in to comment.