https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kris Wong

09/02/2020, 2:13 PM
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!
🤞 2
s

streetsofboston

09/02/2020, 2:16 PM
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.
k

Kris Wong

09/02/2020, 2:23 PM
looks like I am getting similar results there are well
l

louiscad

09/02/2020, 2:34 PM
@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?
k

Kris Wong

09/02/2020, 2:36 PM
also added
l

louiscad

09/02/2020, 2:36 PM
And when set to
true
?
k

Kris Wong

09/02/2020, 2:36 PM
haven't tried that
s

streetsofboston

09/02/2020, 2:48 PM
I tried this, but still got the IDE errors.
Copy code
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…
2 Views