From f46217129bec9527cc8489ba902233769592c693 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Thu, 26 Jan 2017 12:24:32 +0300 Subject: [PATCH] EA-95293: do not report OUTPUT messages to message collector if outputs collector is specified --- .../client/BasicCompilerServicesWithResultsFacadeServer.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/BasicCompilerServicesWithResultsFacadeServer.kt b/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/BasicCompilerServicesWithResultsFacadeServer.kt index dce1bcec921..87d60c5fd07 100644 --- a/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/BasicCompilerServicesWithResultsFacadeServer.kt +++ b/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/BasicCompilerServicesWithResultsFacadeServer.kt @@ -50,7 +50,9 @@ fun MessageCollector.reportFromDaemon(outputsCollector: ((File, List) -> U } } } - report(CompilerMessageSeverity.OUTPUT, message!!, CompilerMessageLocation.NO_LOCATION) + else { + report(CompilerMessageSeverity.OUTPUT, message!!, CompilerMessageLocation.NO_LOCATION) + } } ReportCategory.EXCEPTION -> { report(CompilerMessageSeverity.EXCEPTION, message.orEmpty(), CompilerMessageLocation.NO_LOCATION)