just updated to the latest IDE version and @JsPlai...
# intellij
b
just updated to the latest IDE version and @JsPlainObject still does not seem to be supported by K2 mode; even worse, they show up as unused and IntelliJ removes these imports; any information on how Kotlin compiler plugin integration is supposed to be integrated?
e
It's probably a missing frontend feature. Better report it
b
it should work out of the box with k2, right?
e
Not really. In the sense that you can implement all of it for the compiler backend, but if the frontend doesn't know about it, you'll see errors in IJ.
Let me have a look at the sources
So two things might be going wrong: • frontend part of the plugin missing something • analysis API missing something
I'd say report it with a minimal example
b
ok, thank you 🙂
✔️ 1
e
Analysis API has issues with externals btw. In my experiments every external is marked as unused.
What happens when you apply
@JsPlainObject
is:
Copy code
external interface Test {
  val str: String

  companion object {
    inline operator fun invoke(str: String) { ... }
  }
}