Handle exceptions
This commit is contained in:
@@ -78,7 +78,11 @@ class AllKotlinInspectionTest : DaemonAnalyzerTestCase() {
|
|||||||
val tool = it.tool.tool as? LocalInspectionTool ?: return@forEach
|
val tool = it.tool.tool as? LocalInspectionTool ?: return@forEach
|
||||||
if (it.tool.language != null && it.tool.language!! !in setOf("kotlin", "UAST")) return@forEach
|
if (it.tool.language != null && it.tool.language!! !in setOf("kotlin", "UAST")) return@forEach
|
||||||
val result = measureNanoTime {
|
val result = measureNanoTime {
|
||||||
tool.analyze(psiFile)
|
try {
|
||||||
|
tool.analyze(psiFile)
|
||||||
|
} catch (t: Throwable) {
|
||||||
|
t.printStackTrace()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
results[it.tool.id] = result
|
results[it.tool.id] = result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user