Does anyone have an IntelliJ plugin published with...
# compose-desktop
c
Does anyone have an IntelliJ plugin published with Compose UI in it? I’m wondering how I can get it working on all OSs, since the shared base hasn’t been updated in a while and doesn’t support the latest versions of IntelliJ
i
The shared base was a prototype, and we will return for supporting it at some point. But for now, you should depend on Compose directly. One of the examples of a plugin on Compose is https://plugins.jetbrains.com/plugin/16417-compose-modifiers-playground
c
Thanks for the clarification! Does the plugin need to be compiled on multiple OSs, or would it be sufficient to compile on 1 OS with the dependencies for all desktop targets?
i
You don't need multiple OS'es. It is enough to add all dependencies. It is a jar in the end, not a native binary.
c
Perfect, thanks for the help! I’ll give this a try
a
I tried making a Compose IDEA plugin a while ago. It was necessary to bundle runtimes for every OS, and the resulting jar size was insanely large. In the end I went without Compose.
c
yeah, I don’t like the idea of a huge plugin bundle, but I’ve never developed UIs in Swing/IJ before, and frankly don’t want to learn it. I’ve already got the UI built in Compose and had to remove that portion of the plugin to get it published on the latest IJ versions, and I just want to get that UI restored rather than rewriting it from scratch without Compose
i
Yeah, the binary size is a huge disadvantage. And when there is multiple plugins that ship a separate Compose it is even worse. That is why we started to look at a separate shared plugin. One of the solutions would be, if IDEA Marketplace supports different binaries for each platform, but as far as I know there is no such feature yet.