https://kotlinlang.org logo
Title
y

Yev Kanivets

12/11/2020, 6:05 AM
Hey folks, I’m trying to use code from common KMP module in my Ktor backend module. It compiles and runs successfully, but IDEA highlights keep telling there are no such classes. Don’t you know how the issue can be fixed? I’m using
Kotlin 1.4.0
. (Sample project is attached).
j

Joost Klitsie

12/11/2020, 10:11 AM
I can only tell you that I have the same. My workaround is publishing the common module to my local maven and get it from there, a bit ugly.
y

Yev Kanivets

12/11/2020, 10:12 AM
Yes, this is one of possible solutions, which I’m thinking about. Thanks!
j

Joost Klitsie

12/11/2020, 10:13 AM
I don't think it should be necessary 🙂 somehow you cannot include the kmp common module properly in normal jvm modules
y

Yev Kanivets

12/11/2020, 10:14 AM
I included it in Kotlin/JS module (in the same sample project) and highlighting works.
@Joost Klitsie here is an issue for this problem: https://youtrack.jetbrains.com/issue/KT-43934. Upvote if you like 😉
j

Joost Klitsie

12/15/2020, 12:36 PM
👍 done 🙂
🙌 1