fix KT-7512 JS: project with external library lead to deadlock and IDEA freeze due to wrong storage manager configured

#KT-7512 Fixed
This commit is contained in:
Michael Nedzelsky
2015-04-20 14:35:44 +03:00
parent ba927318d9
commit d0616ed8bd
4 changed files with 8 additions and 6 deletions
@@ -66,7 +66,7 @@ public object JsAnalyzerFacade : AnalyzerFacade<JsResolverForModule, PlatformAna
if (!JsHeaderLibraryDetectionUtil.isJsHeaderLibraryWithSources(files.toList())) {
val providers = moduleInfo.library.getFiles(OrderRootType.CLASSES)
.flatMap { KotlinJavascriptMetadataUtils.loadMetadata(PathUtil.getLocalPath(it)!!) }
.map { KotlinJavascriptSerializationUtil.createPackageFragmentProvider(moduleDescriptor, it.body) }
.map { KotlinJavascriptSerializationUtil.createPackageFragmentProvider(moduleDescriptor, it.body, globalContext.storageManager) }
.filterNotNull()
if (providers.isNotEmpty()) {