From 3cae90dd2668194c6eef0df659b735d1d3e36e74 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Tue, 1 Oct 2019 14:17:51 +0200 Subject: [PATCH] [minor] fix source root creation from imported scripts: make the usages of KotlinSourceRoot consistent everywhere --- .../plugin/dependencies/ScriptsCompilationDependencies.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/dependencies/ScriptsCompilationDependencies.kt b/plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/dependencies/ScriptsCompilationDependencies.kt index d446e99056d..b3b27e39116 100644 --- a/plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/dependencies/ScriptsCompilationDependencies.kt +++ b/plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/dependencies/ScriptsCompilationDependencies.kt @@ -54,7 +54,7 @@ fun collectScriptsCompilationDependencies( val sourceDependenciesRoots = refinedConfiguration.value.importedScripts.mapNotNull { // TODO: support any kind of ScriptSource. - val path = (it as? FileBasedScriptSource)?.file?.path ?: return@mapNotNull null + val path = (it as? FileBasedScriptSource)?.file?.absolutePath ?: return@mapNotNull null KotlinSourceRoot(path, false) } val sourceDependencies =