Fix tests after unblocking exceptions on loading script definitions

should be temporary, proper solution needed in the future
This commit is contained in:
Ilya Chernikov
2019-03-20 14:25:00 +01:00
parent ffd1633e3e
commit 43e4dbb0b1
@@ -42,7 +42,12 @@ abstract class AsyncScriptDefinitionsContributor(protected val project: Project)
} }
return@write null return@write null
} }
backgroundTask?.queue() // TODO: resolve actual reason for the exception below
try {
backgroundTask?.queue()
} catch (e: IllegalStateException) {
if (e.message?.contains("Calling invokeAndWait from read-action leads to possible deadlock") == false) throw e
}
} }
protected abstract fun loadScriptDefinitions(previous: List<KotlinScriptDefinition>?): List<KotlinScriptDefinition> protected abstract fun loadScriptDefinitions(previous: List<KotlinScriptDefinition>?): List<KotlinScriptDefinition>