We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e01f62 commit 5d65e6bCopy full SHA for 5d65e6b
idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetConfiguration.kt
@@ -46,6 +46,14 @@ class KotlinFacetConfiguration : FacetConfiguration {
46
else {
47
settings = KotlinFacetSettings()
48
}
49
+
50
+ // Migration problem workaround for pre-1.1-beta releases (mainly 1.0.6) -> 1.1-rc+
51
+ // Problematic cases: 1.1-beta/1.1-beta2 -> 1.1-rc+ (useProjectSettings gets reset to false)
52
+ // This heuristic detects old enough configurations:
53
+ if (element.children.none { it.getAttribute("name").value == "useProjectSettings" }
54
+ && settings.compilerInfo.k2jvmCompilerArguments == null) {
55
+ settings.useProjectSettings = false
56
+ }
57
58
59
@Suppress("OverridingDeprecatedMember")
0 commit comments