How can I get rid of this error in the editor wind...
# compose-desktop
m
How can I get rid of this error in the editor window. I have a multi-platform project and when I use
expect
somewhere I get the following error when I open the relevant file. Funnily the project builds and runs just fine and does what I
expected
it to do.
b
Never seen this. Usually you just get a warning in gradle logs. Try adding this gradle prop https://github.com/mpetuska/kmdc/blob/master/gradle.properties#L14
f
I've seen this recently and I believe it's a bug. There was some weird workaround but I don't remember it.
j
I have seen it and I am just ignoring it
m
This issue suggests to uncomment this line
# enableGranularSourceSetsMetadata=true
but I wonder which unwanted consequences that would have. The suggestion above to set
kotlin.mpp.stability.nowarn=true
doesn’t make a difference. The funny thing is that the error seems to go away when you restart IntelliJ but only as long as you do not open any file which contains an
expect
clause.