MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / doLeanBuildstep

Method doLeanBuildstep

lib/compilers/lean.ts:75–94  ·  view source on GitHub ↗
(
        command: string,
        args: string[],
        execOptions: ExecutionOptionsWithEnv,
        inputFilename: string,
    )

Source from the content-addressed store, hash-verified

73 }
74
75 private async doLeanBuildstep(
76 command: string,
77 args: string[],
78 execOptions: ExecutionOptionsWithEnv,
79 inputFilename: string,
80 ) {
81 const result = await this.exec(command, args, execOptions);
82 const processedResult = this.processExecutionResult(result, result.filenameTransform(inputFilename));
83
84 for (const output of [processedResult.stdout, processedResult.stderr]) {
85 for (const line of output) {
86 if (line.tag?.column !== undefined) {
87 // Lean reports zero-based columns, Monaco diagnostics use one-based columns
88 line.tag.column++;
89 }
90 }
91 }
92
93 return processedResult;
94 }
95
96 private partitionOptionsForSteps(
97 options: string[],

Callers 1

runCompilerMethod · 0.95

Calls 2

execMethod · 0.45

Tested by

no test coverage detected