EA-115037: Rebuild PerModulePackageCache on miss

This commit is contained in:
Simon Ogorodnik
2019-04-02 15:45:58 +03:00
parent dd3dfedf81
commit f3268c99df
@@ -83,9 +83,10 @@ class PluginDeclarationProviderFactory(
} }
private fun diagnoseMissingPackageFragmentPerModulePackageCacheMiss(message: String): Nothing { private fun diagnoseMissingPackageFragmentPerModulePackageCacheMiss(message: String): Nothing {
PerModulePackageCacheService.getInstance(project).onTooComplexChange() // Postpone cache rebuild
throw IllegalStateException( throw IllegalStateException(
"PerModulePackageCache miss.\n" + "PerModulePackageCache miss.\n" +
message message
) )
} }