Guys I'm having trouble with intellij recognizing ...
# announcements
a
Guys I'm having trouble with intellij recognizing dependencies in a multi-project, multi-platform project. Does anyone have any experience with this? I can get it to build correctly, just intellij won't recognize any dependencies correctly. Perhaps there's a better IDE for kotlin?
youtrack 1
t
Do you have example project?
a
I'm working in a private repo right now, but I'm working on a public example that I can hopefully post here soon.
Should I post that to youtrack when I'm done?
t
Yes, if you want any action from Kotlin team 🙂
a
👍
t
Do you use Gradle project “Refresh”?
a
Yeah I've tried a few things including different machines/operating systems.
Given it's on the JVM, shouldn't have much of a difference though...
t
Which Kotlin version do you use?
a
1.4.20
t
I had some problems with MPP project
My solution: Kotlin -
1.4.21
IDEA
2020.3.1
+ Kotlin plugin
1.4.21
a
I'll give it a shot, thanks!
a
I did not had any problems blob thinking upside down, maybe a sample project is required in order to reproduce the problem 👀
a
Well now I've got the problem down to this: • If I don't add the enableFeaturePreview("GRADLE_METADATA") feature to the settings.gradle.kt file, it will not compile and fail on compiling commonKotlinMetadata, which I'm still not sure what it is. • If I do add it, it will compile successfully, but intellij will not allow access to the dependency correctly
And here is a test repo: https://github.com/adamsar/kotlin-dependency-bug Basically just want the common sub project to find the konform dependency in the commonMain source set.
m
I have a similar problem but in a slightly more specific scenario in which I try to access muktiplatform classes from pure jvm module (have also prepared a test repo for that) https://stackoverflow.com/q/65830632/1118475