Fix tests after unblocking exceptions on loading script definitions
should be temporary, proper solution needed in the future
This commit is contained in:
@@ -42,7 +42,12 @@ abstract class AsyncScriptDefinitionsContributor(protected val project: Project)
|
||||
}
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user