https://kotlinlang.org logo
#kotest
Title
# kotest
p

peekandpoke

05/12/2022, 2:07 PM
Has anyone seen the error above before?
s

Sam

05/12/2022, 2:11 PM
"Internal compiler error" shouldn't ever happen. If you can reproduce it I would report it via kotl.in/issue
p

peekandpoke

05/12/2022, 2:12 PM
Well maybe the kotest gradle plugin is doing something "fancy"?
I can build all other gradle sub-projects ... only the jsTest stuff is broken...
Ok here is the deal: I have an external dependency (kotest-js) that brings in
kotlinx-coroutines-core.1.6.1
And my lib pulls
kotlinx-coroutines-core.1.6.0
Somehow the compiler does not remove the smaller version from the
icCacheMap
which some steps later results in the NPE.
After updating my dep to
kotlinx-coroutines-core.1.6.1
the errors is gone.
So in short: It is a problem in the dependency resolution in the kotlin compiler
15 Views