From e3c7929fee8f9d78e121e7a276dd16a5378db70c Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 17 May 2022 19:41:49 +0200 Subject: [PATCH] KT-52284 Clarify message in Kapt with K2 error --- .../src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt b/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt index c6258f966fc..9f49d51dfa4 100644 --- a/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt +++ b/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt @@ -71,7 +71,7 @@ class Kapt3CommandLineProcessor : CommandLineProcessor { if (configuration.getBoolean(CommonConfigurationKeys.USE_FIR)) { configuration[CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY]?.report( CompilerMessageSeverity.ERROR, - "kapt currently doesn't support experimental K2 compiler" + "kapt currently doesn't support experimental K2 compiler\nDisable K2 compiler by removing -Xuse-k2 flag" ) }