Hi <@UD99TSCD8>, apologies for direct address, but...
# gradle
d
Hi @Andrey Uskov [JB], apologies for direct address, but as the assignee for https://youtrack.jetbrains.com/issue/KT-30413, even a few words on the status of this defect may help guide some strategic direction for us. It concerns the interaction between the IDE and K/MP + Gradle Composite builds: Presently when using K/MP + Gradle Composite builds: - Gradle build is working fine 👍 -But the IDE (IntelliJ or AS) cannot resolve symbols across Composed MP project dependencies 👎 ...which is a big problem for my team's acceptance of this otherwise desired approach. Is a fix likely any version soon, or a great complexity? Thanks 🙏
Here's an example: http://git.chrishatton.org/chris/kotlin-multi-platform-template-composite.git The symbols shown by IntellIJ in red here, are resolved properly during Gradle Build.
s
I’m having less luck with Composite builds, and have been disappointed that this bug (https://youtrack.jetbrains.com/issue/KT-36784) doesn’t appear to be moving towards a fix.
a
@darkmoon_uk, do you still observe this issue in IDEA 2020.1 with Kotlin 1.3.71? Import of cross-MPP dependencies was improved in these versions. (BTW please use "Module per source set" during import) As for issue KT-30413 it describes case when mode "Module per source set" is disabled. This use case is considered to be obsolete, thus the issue is not of high priority for us. But in any case if you still observe the issue with versions mentioned above I should take a look.
d
@Andrey Uskov [JB] Thanks for your reply. I am overjoyed 😂 to report that, yes, by using 1.3.71 and IntellIJ 2020.1 EAP together, the symbol resolution across Composed K/MP modules does now work 👏 🎉 But I also did not use '_Module per Source Set_', against your advice, and it still worked. In case it's significant I also enabled granular source sets metadata. I thought it was no longer advisable to work with an (IntelliJ) module per source set? It seems like step backward if we're now expected to have a module per source set?
s
@Andrey Uskov [JB] I’m still unable to use composite builds in 1.3.71. The problem appears to be specific to using an MPP library in a JS library.
a
@darkmoon_uk, now by default we work with "Module per source set" enabled.
@Alexey Belkov [JB], could you please help @steamstreet ?
d
Ok, thanks @Andrey Uskov [JB], I can look into that part for myself.
For now, very happy to report the IDE issue resolved 👍
🙂 1
a
@steamstreet I assume it's https://youtrack.jetbrains.com/issue/KT-36784? @Ivan Kubyshkin [JetBrains] FYI
s
That’s the issue I’m struggling with right now, yes.