Suddenly all over my code I'm getting red lines co...
# multiplatform
m
Suddenly all over my code I'm getting red lines complaining "The feature 'multi platform project' is experimental and should be enabled explicitly", even directly underneath the annotation @ExperimentalMultiplatform. I've now added the compiler option -Xmulti-platform (via gradle, I use AS), but I still get the red lines. Despite this the app builds and runs, although it crashes immediately, perhaps with a related error but I'm still tracking that down.
l
Can you pinpoint the last commit where you didn't have the issue and inspect what changed since then?
m
Good thought. Yes I can and yes I will 🙂
e
@MarkRS I have the same issue in my (brand new) project, did you find a fix?
m
I don't have this issue any more @Etienne, but I'm sorry to say I don't know what I did that fixed it 😞 . Does your code run? I suspect it was something in build files (or is that too obvious to even say?). I do still have red lines everywhere, import statements complaining about not finding io.ktor and similar, but again the code builds and runs. @ephemient pointed out that "plugins don't work in KMM", which seems too much of a blanket statement, but it does seem to me that they perhaps "don't work" to the extent of preventing ktlint seeing some thing.
e
Yah my code ran/runs, after mucking about for a whole day, I found that the latest Bumblebee AS 'fixes' the issue. I tried everything I could find/think of on the Chipmunk AS release, no dice.
I'll try to find a place to report the issue that makes sense. Doesn't seem like Jetbrains thinks its on their end, from the issues I found being closed and all. Maybe it's one of those "AS uses older components and it'll eventually be fixed" type deals.
e
https://youtrack.jetbrains.com/issue/KT-27683 more like "plugins that aren't built for MPP, don't work with MPP" than "plugins don't work"