r

    raniejade

    3 years ago
    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.
    Liliia

    Liliia

    3 years ago
    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

    3 years ago
    Refreshing does not help. Interesting, our build artifacts are timestamped - so the jar referenced during the sync does not actually exist.
    Liliia

    Liliia

    3 years ago
    Could you share an example project, please? Or at least Gradle build files
    r

    raniejade

    3 years ago
    You can try it out on https://github.com/spekframework/spek - but I'll try to find sometime to setup a smaller example.
    @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
    Liliia

    Liliia

    3 years ago
    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…