mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 22:19:27 -06:00
Apply manual fixes
This commit is contained in:
Generated
-8
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="PrettierConfiguration">
|
||||
<option name="myConfigurationMode" value="AUTOMATIC" />
|
||||
<option name="myRunOnSave" value="true" />
|
||||
<option name="myRunOnReformat" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -28,6 +28,7 @@ import {BypassCache, ExecutionParams, FiledataPair} from '../../types/compilatio
|
||||
import type {ICompiler, PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js';
|
||||
import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js';
|
||||
import {SelectedLibraryVersion} from '../../types/libraries/libraries.interfaces.js';
|
||||
import {BaseCompiler} from '../base-compiler.js';
|
||||
import {CompilerArguments} from '../compiler-arguments.js';
|
||||
|
||||
export class FakeCompiler implements ICompiler {
|
||||
@@ -54,9 +55,8 @@ export class FakeCompiler implements ICompiler {
|
||||
this.possibleArguments = new CompilerArguments('fake-for-test');
|
||||
}
|
||||
|
||||
initialise(mtime: Date, clientOptions: any, isPrediscovered: boolean) {
|
||||
initialise(mtime: Date, clientOptions: any, isPrediscovered: boolean): Promise<BaseCompiler | null> {
|
||||
throw new Error('Method not implemented.');
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
|
||||
getInfo() {
|
||||
|
||||
@@ -124,7 +124,7 @@ export class LocalExecutionEnvironment implements IExecutionEnvironment {
|
||||
packageDownloadAndUnzipTime: utils.deltaTimeNanoToMili(startTime, endTime),
|
||||
});
|
||||
}
|
||||
throw new ExecutablePackageCacheMiss('Tried to get executable from cache, but got a cache miss');
|
||||
throw new ExecutablePackageCacheMiss('Tried to get executable from cache, but got a cache miss');
|
||||
}
|
||||
|
||||
async downloadExecutablePackage(hash: string): Promise<void> {
|
||||
@@ -146,9 +146,7 @@ export class LocalExecutionEnvironment implements IExecutionEnvironment {
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
this.buildResult?.defaultExecOptions?.env?.PATH
|
||||
) {
|
||||
if (this.buildResult?.defaultExecOptions?.env?.PATH) {
|
||||
if (env.PATH.length > 0)
|
||||
env.PATH = env.PATH + path.delimiter + this.buildResult.defaultExecOptions.env.PATH;
|
||||
else env.PATH = this.buildResult.defaultExecOptions.env.PATH;
|
||||
@@ -241,16 +239,16 @@ export class LocalExecutionEnvironment implements IExecutionEnvironment {
|
||||
executeParameters,
|
||||
homeDir,
|
||||
);
|
||||
} catch (err: UnprocessedExecResult | any) {
|
||||
} catch (err: any) {
|
||||
if (err.code && err.stderr) {
|
||||
return utils.processExecutionResult(err);
|
||||
}
|
||||
return {
|
||||
...utils.getEmptyExecutionResult(),
|
||||
stdout: err.stdout ? utils.parseOutput(err.stdout) : [],
|
||||
stderr: err.stderr ? utils.parseOutput(err.stderr) : [],
|
||||
code: err.code === undefined ? -1 : err.code,
|
||||
};
|
||||
return {
|
||||
...utils.getEmptyExecutionResult(),
|
||||
stdout: err.stdout ? utils.parseOutput(err.stdout) : [],
|
||||
stderr: err.stderr ? utils.parseOutput(err.stderr) : [],
|
||||
code: err.code === undefined ? -1 : err.code,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,8 +328,8 @@ export class LocalExecutionEnvironment implements IExecutionEnvironment {
|
||||
|
||||
return processed;
|
||||
}
|
||||
const execResult: UnprocessedExecResult = await exec.sandbox(executable, args, execOptions);
|
||||
return this.processUserExecutableExecutionResult(execResult, Array.from(lineParseOptions.values()));
|
||||
const execResult: UnprocessedExecResult = await exec.sandbox(executable, args, execOptions);
|
||||
return this.processUserExecutableExecutionResult(execResult, Array.from(lineParseOptions.values()));
|
||||
}
|
||||
|
||||
processUserExecutableExecutionResult(
|
||||
|
||||
@@ -38,6 +38,7 @@ for (const key in extraOptions) {
|
||||
window.compilerExplorerOptions[key] = extraOptions[key as keyof typeof extraOptions];
|
||||
}
|
||||
|
||||
// biome-ignore lint/style/useConst: can't use const here
|
||||
declare let __webpack_public_path__: string;
|
||||
|
||||
// eslint-disable-next-line prefer-const
|
||||
|
||||
@@ -29,7 +29,7 @@ import {beforeAll, describe, expect, it} from 'vitest';
|
||||
import {withAssemblyDocumentationProviders} from '../../lib/handlers/assembly-documentation.js';
|
||||
|
||||
/** Test matrix of architecture to [opcode, tooptip, html, url] */
|
||||
export const TEST_MATRIX: Record<PropertyKey, [string, string, string, string][]> = {
|
||||
const TEST_MATRIX: Record<PropertyKey, [string, string, string, string][]> = {
|
||||
6502: [
|
||||
[
|
||||
'lda',
|
||||
|
||||
Reference in New Issue
Block a user