Skip to content

Commit

Permalink
DEBUG: locate module files
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Mar 23, 2024
1 parent d063160 commit 7e45625
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions test/integration/linter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { deepStrictEqual, strictEqual } from 'assert';
import { spawn } from 'child_process';
import * as path from 'path';

import { glob } from 'glob';
Expand Down Expand Up @@ -30,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 @@ -100,19 +99,8 @@ suite('Linter integration', async () => {
const command = 'find';
const args = [root, '-name', '*.mod'];

const childProcess = spawn(command, args);

childProcess.stdout.on('data', data => {
console.log(data.toString());
});

childProcess.stderr.on('data', data => {
console.error(data.toString());
});

childProcess.on('close', code => {
console.log(`Child process exited with code ${code}`);
});
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 7e45625

Please sign in to comment.