If my multiplatform library doesn't have any nativ...
# multiplatform
e
If my multiplatform library doesn't have any native targets, should there be a klib generated for it?
s
Yes! The metadata klibs that your library users will have to use to analyze certain source sets again!
e
Maybe that's one part of my issue. It looks like my KMP libraries that don't have any native targets (just Android and JVM) don't have any klibs created.
s
Let's investigate together? Tomorrow morning?
e
Which morning 😅 I'm in US Eastern
s
🤦‍♂️ Sorry, my fault! CET Morning, No worries, we will find a spot!
e
I actually happen to (unfortunately) still be awake, but maybe we can schedule some time for Wednesday? I'd like to take some time tomorrow to more precisely document the issues I'm seeing, since I think there are a few of them that are interrelated. Hopefully this will reduce wasting your time so I'm not trying to remember everything while we're actually on the call.
Between your advice and https://issuetracker.google.com/issues/231701341 I think most of my issues are resolved. It seems like the only one that still needs to be resolved is that klibs aren't generated unless there's a native target. I will file an issue on youtrack with a reproducer and post the link here.
https://youtrack.jetbrains.com/issue/KT-52414/klib-not-built-for-multiplatform-project-for-certain-target-comb My thought is that maybe this is related to the changes in how the common source sets work.
v
I have in my memory that you posted a workaround for some issue that sounds like this https://youtrack.jetbrains.com/issue/KT-52414 somewhere @eygraber - essentially IDE highlighting was broken if only using Android or JVM target, is that so or am I going crazy?
e
The were a couple of things: 1. This particular issue doesn't have a workaround that I remember other than adding a target that makes the klib get built 2. Anything IDE related was resolved by using the latest version of everything and the electric eel Android Studio alphas
👍 1
@vanniktech looks like I forgot one thing that still needs to be done even when using Electric Eel https://kotlinlang.slack.com/archives/C3PQML5NU/p1652779672225139?thread_ts=1652224566.469179&cid=C3PQML5NU
v
Yes this is exactly the message I was 'remembering', thanks!
👍 1