Skip to content

Commit 1c388fa

Browse files
committed
DEBUG: add extensive debug info for CI
1 parent e27aac2 commit 1c388fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lint/provider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,15 @@ export class FortranLintingProvider {
341341
// Discard the previous diagnostic state for this document
342342
if (this.fortranDiagnostics.has(document.uri)) this.fortranDiagnostics.delete(document.uri);
343343
this.logger.debug('[lint] No linting diagnostics to show');
344+
console.log('[lint] No linting diagnostics to show');
344345
return;
345346
}
346347
let diagnostics: vscode.Diagnostic[] = this.linter.parse(output);
348+
console.log('[lint] Parsing output to vscode.Diagnostics', diagnostics);
347349
this.logger.debug('[lint] Parsing output to vscode.Diagnostics', diagnostics);
348350
// Remove duplicates from the diagnostics array
349351
diagnostics = [...new Map(diagnostics.map(v => [JSON.stringify(v), v])).values()];
352+
console.log('[lint] Removing duplicates. vscode.Diagnostics are now:', diagnostics);
350353
this.logger.debug('[lint] Removing duplicates. vscode.Diagnostics are now:', diagnostics);
351354
this.fortranDiagnostics.set(document.uri, diagnostics);
352355
return diagnostics;
@@ -377,6 +380,8 @@ export class FortranLintingProvider {
377380
`[build.single] compiler: "${this.settings.compiler}" located in: "${command}"`
378381
);
379382
this.logger.info(`[build.single] Compiler query command line: ${command} ${argList.join(' ')}`);
383+
console.log(`[build.single] compiler: "${this.settings.compiler}" located in: "${command}"`);
384+
console.log(`[build.single] Compiler query command line: ${command} ${argList.join(' ')}`);
380385

381386
try {
382387
const fypp = await this.getFyppProcess(document);
@@ -392,6 +397,7 @@ export class FortranLintingProvider {
392397
);
393398
const output: string = stdout + stderr;
394399
this.logger.debug(`[build.single] Compiler output:\n${output}`);
400+
console.log(`[build.single] Compiler output:\n${output}`);
395401
return output;
396402
} catch (err) {
397403
this.logger.error(`[build.single] Compiler error:`, err);

0 commit comments

Comments
 (0)