From e5e583e3e54564bb2cfd174dfdb915a77aac23f4 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Thu, 8 Feb 2018 16:09:40 +0300 Subject: [PATCH] Configuration: Show Koltin plugin path as "home path" of Kotlin SDK #KT-22640 Fixed --- idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt index 1f2d766e6f4..b5b04ce7b42 100644 --- a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt +++ b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt @@ -17,6 +17,7 @@ import com.intellij.util.Consumer import org.jdom.Element import org.jetbrains.kotlin.idea.KotlinIcons import org.jetbrains.kotlin.idea.versions.bundledRuntimeVersion +import org.jetbrains.kotlin.utils.PathUtil import javax.swing.JComponent class KotlinSdkType : SdkType("KotlinSDK") { @@ -47,7 +48,7 @@ class KotlinSdkType : SdkType("KotlinSDK") { fun createSdkWithUniqueName(existingSdks: Collection): ProjectJdkImpl { val sdkName = suggestSdkName(SdkConfigurationUtil.createUniqueSdkName(this, "", existingSdks), "") return ProjectJdkImpl(sdkName, this).apply { - homePath = "not applicable" + homePath = PathUtil.kotlinPathsForIdeaPlugin.homePath.absolutePath } }