is there any guide/docs on how to get IntelliJ IDE...
# multiplatform
a
is there any guide/docs on how to get IntelliJ IDEA (with kmp plugin) to work properly with code navigation between ios/swift? It works in a freshly created project, but can't get it to work on my large app with umbrella kmp module, etc
t
cc @Wout Werkman
thank you color 1
e
The idea is that it should work well disregarding the project size. Is there any chance you share the project so we could use it for testing internally? If not, could you at least describe the project in terms of structure - both Kotlin and Xcode dependencies, amount of files, LoCs? What kind of navigation is broken - that will help us to deliver the expected experience. Please do create an issue (Kotlin Multiplatform Tooling Project).
👍 1
a
It's a proprietary project, unfortunately, but: rough structure: • Android folder, with many sub modules • KMP folder, with many sub modules ◦ ios module specifically for generating a umbrella framework • iOS folder ◦ adds kmp framework as a pre-build action with embedAndSign... ◦ has local spm modules • root settings.gradle.kts
e
I think local SPM modules could be the issue, I’ll post an issue
a
ok! Let me know if I can check/describe something else. Regarding project size its about 4k kotlin files, 2k swift files, 230k / 150k loc respectively
e
Can you add some details on what kind of problems you face? What exactly happens when you try to navigate the code?
a
Yeah quite simply it says "Cannot find declaration to go to" when cmd-clicking something in swift. Just realized that we are using SKIE and that could be relevant too
e
Yes, SKIE is currently not supported.
👍 1
a
Thanks, should've realized!
blob no problem 1
f
@Elijah Semyonov sorry to resume an old thread but would like to know if SKIE support is planned in the future (and when), thanks. Isn't SKIE very common in KMP?
e
There currently is no planned support for SKIE. It wasn’t written with IDE support in mind so it’s non-trivial to do.
f
Ok, thank you. Anyway if KMP is used with native UIs (Compose and SwiftUI) SKIE is still needed to make Swift code more natural to write, isn't it? (I have done some KMP development in the past and trying to catch up with new things).
e
We are working on Swift Export to make it as frictionless as possible. You still can use SKIE, though. Even build it from within IDEA, the code resolve in Swift side just will not resolve properly because from the integration perspective it’s just an ObjC exported framework
👍 1