From f37cc9c8ef04098679571f3c9e85e7caf6588c5a Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 28 Aug 2017 14:19:31 +0200 Subject: [PATCH] Start read action at correct time (EA-105045) --- .../kotlin/idea/configuration/ConfigureKotlinInProjectUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInProjectUtils.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInProjectUtils.kt index eccee6d9df1..c6ea7df879e 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInProjectUtils.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInProjectUtils.kt @@ -204,8 +204,8 @@ fun getCanBeConfiguredModulesWithKotlinFiles(project: Project, excludeModules: C } fun hasAnyKotlinRuntimeInScope(module: Module): Boolean { - val scope = module.getModuleWithDependenciesAndLibrariesScope(hasKotlinFilesOnlyInTests(module)) return runReadAction { + val scope = module.getModuleWithDependenciesAndLibrariesScope(hasKotlinFilesOnlyInTests(module)) getKotlinJvmRuntimeMarkerClass(module.project, scope) != null || hasKotlinJsKjsmFile(module.project, LibraryKindSearchScope(module, scope, JSLibraryKind) ) || hasKotlinCommonRuntimeInScope(scope)