From a315b73c919397f78e31f7286eec6eef81eec930 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 27 Jan 2017 16:45:02 +0300 Subject: [PATCH] Promote severity of configuration warnings to STRONG_WARNING The reason is that these configuration problems may be the reason of compilation errors, but they were hidden from the output because warnings are not reported when there's at least one error Original commit: e9a737b85af105d32b63c7a9b0abfad2c6786ba3 --- .../src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt index 7c64ef1e7b3..a519d7a1a96 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt @@ -639,7 +639,7 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) { // We do not support circular dependencies, but if they are present, we do our best should not break the build, // so we simply yield a warning and report NOTHING_DONE environment.messageCollector.report( - WARNING, + STRONG_WARNING, "Circular dependencies are not supported. The following JS modules depend on each other: " + chunk.modules.map { it.name }.joinToString(", ") + ". " + "Kotlin is not compiled for these modules", @@ -690,7 +690,7 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) { ): OutputItemsCollector? { if (chunk.modules.size > 1) { environment.messageCollector.report( - WARNING, + STRONG_WARNING, "Circular dependencies are only partially supported. The following modules depend on each other: " + chunk.modules.map { it.name }.joinToString(", ") + ". " + "Kotlin will compile them, but some strange effect may happen",