https://kotlinlang.org logo
p

Philipp Smorygo [JB]

04/15/2022, 8:47 PM
Hi, after updating to 5.9.0 I started getting error highlighting for all `ServiceException`s and inheritors of
AbstractServiceException
with message
"required Throwable, actual ServiceException"
. Also, references to
Exception
in
io.kvision-kvision-common-remote-commonMain
module are not resolved to anything. The project however compiles file. I use IDEA 2022.2 EAP 222.1198. Is it a problem on IDEA side, or something is not well with kvision module?
r

Robert Jaros

04/15/2022, 9:18 PM
I think it's a problem with IntelliJ and Kotlin 1.6.20. I've already asked about it on #multiplatform channel https://kotlinlang.slack.com/archives/C3PQML5NU/p1649855976768279
It seems for IntellIJ an exception defined in common code is not in
java.lang.Throwable
hierarchy.
It should be because it inherits from
kotlin.Exception
and on JVM it's a typealias for
java.lang.Exception
.
p

Philipp Smorygo [JB]

04/15/2022, 9:57 PM
Ok, i see. Thank you. Let’s hope Kotlin team will do something about that.
t

Tom

04/16/2022, 11:44 AM
Is this the same error? The project compiles without problems, but I get the error highlighting since the update to KVision 5.9.0 and Kotlin 1.6.20.
r

Robert Jaros

04/16/2022, 12:23 PM
It's not the same error, but I've seen similar too (https://kotlinlang.slack.com/archives/C0A974TJ9/p1649856333614149). It's probably somehow related to https://youtrack.jetbrains.com/issue/KT-49877