org.jetbrains.kotlin.codegen.CompilationException:...
# kontributors
j
org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'slugsToObjectList' into local final fun <anonymous>(it: kotlin.collections.List<kotlin.String>): arrow.core.Option<arrow.core.Either<com.ep.smartid.ums.web.UserController.ObjectLoadError, kotlin.collections.Collection<com.ep.smartid.ums.domain.Application>>> defined in com.ep.smartid.ums.web.UserController.patchUser.<anonymous> { slugsToObjectList(it, { this.applicationService.getApplication(it) }).some() } Cause: slugsToObjectList (Ljava/util/Collection;Lkotlin/jvm/functions/Function1;)Larrow/core/Either;: Cause: Captured field not found: com/ep/smartid/ums/web/UserController$patchUser$2$applications$1$1.this$0
d
First of all, I don't think this really belongs to #kontributors (or I'm missing something maybe, please do correct me in such case) -- this channel is devoted to people who would like to contribute to Kotlin compiler/IDE plugin and have some specific questions about it internals. Then, you're very welcome to file an issue: kotl.in/issue. Minimized example is very appreciated, but at the very least source code will be required -- such errors are very hard to diagnose looking just at the exception. Also, please specify plugin/compiler version you're using. P.S. Sorry for silly question, but are you sure that you're using the same version of compiler/plugin both when compiling in IDEA and when compiling from maven? This part sounds very suspicious for me
j
thanks, I'll try to minimize it
I'm not absolutely certain that they're the exact same, maven is on the latest 1.2.21 and IDEA is on the latest release of that