Thread
#multiplatform
    Kris Wong

    Kris Wong

    2 years ago
    this is with kotlin 1.4 and
    enableGranularSourceSetsMetadata
    set to true
    seems correct error info in the IDE for KMP projects is still elusive
    some day!
    s

    streetsofboston

    2 years ago
    Had the same issue in my
    commonMain
    sourceset when using this; E.g CoroutineScope could not be found by the IDE. But all compiled fine, though.
    Kris Wong

    Kris Wong

    2 years ago
    looks like I am getting similar results there are well
    louiscad

    louiscad

    2 years ago
    @Kris Wong What about the other flag shown in Kotlin 1.4-M2 blog post, did you try setting dependency propagation to false as shown?
    Kris Wong

    Kris Wong

    2 years ago
    also added
    louiscad

    louiscad

    2 years ago
    And when set to
    true
    ?
    Kris Wong

    Kris Wong

    2 years ago
    haven't tried that
    s

    streetsofboston

    2 years ago
    I tried this, but still got the IDE errors.
    kotlin.mpp.enableGranularSourceSetsMetadata=true
    kotlin.native.enableDependencyPropagation=false
    I just removed both of them, which made it all work again (I’m not using the KMM plugin) Strange thing is, adding these flags or not, the actual compilation and build work fine in both situations…. It is just the IDE that complains…