https://kotlinlang.org logo
r

raniejade

02/04/2019, 9:29 PM
Anyone else having a problem getting IDE support for a
jvm
only module depending on a
mpp
module? They are in the same project (
implementation project('mpp-module)
). Classes in the
mpp
module can't be resolved by IJ in the
jvm
only module. Though, compiling with gradle works as usual.
Looking at the project structure the
jvm
only module is referencing the output jars of the
mpp
module.
l

Liliia

02/06/2019, 7:51 AM
Have you tried Gradle refresh after the project import? Also, does https://youtrack.jetbrains.com/issue/KT-28822 look like the same problem as you are experiencing?
r

raniejade

02/06/2019, 7:56 AM
Refreshing does not help. Interesting, our build artifacts are timestamped - so the jar referenced during the sync does not actually exist.
l

Liliia

02/06/2019, 10:12 AM
Could you share an example project, please? Or at least Gradle build files
r

raniejade

02/06/2019, 10:33 AM
You can try it out on https://github.com/spekframework/spek - but I'll try to find sometime to setup a smaller example.
🙏 1
@Liliia very minimal example here: https://github.com/raniejade/mpp-bug
and I found the exact line that breaks everything: https://github.com/raniejade/mpp-bug/blob/master/mpp/build.gradle#L12
l

Liliia

02/06/2019, 12:17 PM
Thank you, will take a look
and I found the exact line that breaks everything
— it’d help the highlighting, but Gradle build is reasonably failed. There is an issue about it: https://youtrack.jetbrains.com/issue/KT-27268 About the problem itself, I am investigating it right now, might be a regression at the IDE side…