From 8ea7fc1d47fa9722c96f50f7003db82b599f83bb Mon Sep 17 00:00:00 2001 From: Vladimir Dolzhenko Date: Tue, 14 Apr 2020 14:26:16 +0200 Subject: [PATCH] Add file content on analysis failure Relates to #EA-222075 --- .../kotlin/idea/caches/resolve/ResolutionFacadeWithDebugInfo.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/ResolutionFacadeWithDebugInfo.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/ResolutionFacadeWithDebugInfo.kt index edc3621b204..d284cfe3ec5 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/ResolutionFacadeWithDebugInfo.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/ResolutionFacadeWithDebugInfo.kt @@ -120,6 +120,7 @@ private class KotlinIdeaResolutionException( }) for (element in resolvingWhat.elements.withIndex()) { withAttachment("element${element.index}.kt", element.value.text) + withAttachment("file${element.index}.kt", element.value.containingFile.text) } } }