From b9a2d5eb415b671acb6ccd5c3ccbef3a4ac3790c Mon Sep 17 00:00:00 2001 From: partouf Date: Mon, 6 Jun 2022 15:32:13 +0200 Subject: [PATCH] if inputFilename --- static/compiler-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/compiler-service.ts b/static/compiler-service.ts index b52f39b9f..ffa1165b6 100644 --- a/static/compiler-service.ts +++ b/static/compiler-service.ts @@ -343,7 +343,7 @@ export class CompilerService { // TODO: Pass what compiler did this and check if it it's actually skippable // Right now we're ignoring outputs that match the input filename // Compiler & Executor are capable of giving us the info, but conformance view is not - if (stdout.length === 1 && stderr.length === 0) { + if (stdout.length === 1 && stderr.length === 0 && result.inputFilename) { // We could also move this calculation to the server at some point const lastSlashPos = _.findLastIndex(result.inputFilename, ch => ch === '\\'); return result.inputFilename.substring(lastSlashPos + 1) !== stdout[0].text;