Skip to content

Commit

Permalink
DEBUG: show where '*.mod' are stored.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Mar 23, 2024
1 parent b4d3548 commit ed00f0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/linter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
} from '../../src/lint/compilers';
import { FortranLintingProvider } from '../../src/lint/provider';
import { LogLevel, Logger } from '../../src/services/logging';
import { EXTENSION_ID, pipInstall } from '../../src/util/tools';
import { EXTENSION_ID, pipInstall, spawnAsPromise } from '../../src/util/tools';

suite('Linter VS Code commands', async () => {
let doc: TextDocument;
Expand Down Expand Up @@ -96,6 +96,11 @@ suite('Linter integration', async () => {
// need to implement a the compiler versioning see #523
test('GNU - API call to doLint produces correct diagnostics', async () => {
const diags = await linter['doLint'](doc);
const command = 'find';
const args = [root, '-name', '*.mod'];

const [stdout, stderr] = await spawnAsPromise(command, args);
console.log(`FIND MODULE RESULTS: ${stdout}`);
const ref: Diagnostic[] = [
new Diagnostic(
new Range(new Position(21 - 1, 18 - 1), new Position(21 - 1, 18 - 1)),
Expand Down

0 comments on commit ed00f0a

Please sign in to comment.