Yup, I’ve got a plugin published with it (using Compose in a tool window), though it’s still very early and has a few caveats:
• You’ll probably want to use the experiemental shared base so that your plugin runs on all supported OSs
• The shared base version is currently at 0.1.0, which is compiled with compose JB version 1.1.0 and does not work with 1.1.1
• You’ll need Kotlin 1.6.10 for Compose. Some libraries, like Ktor 2.0.0, require 1.6.20 or later, so you may need to use older versions of Kotlin libraries that were compiled on 1.6.10
• Compose uses a newer version of Coroutines than what is bundled with IntelliJ, so you’ll need to set the plugin classloader to use your declared dependencies first
Here’s the source code for how I’ve got everything set up, which may be useful for you. Hopefully my struggling through this dependency hell saves you a few hours of the same 😅
g
galex
04/29/2022, 2:44 PM
wow thanks @Casey Brooks, that's super interesting!
I also have a plugin that is using Compose (not published yet).
https://github.com/DevSrSouza/dropbox-focus-intellij-plugin/
I have a fork from compose-jetbrains-theme and I use UIManager + UITheme to get IntelliJ current theme colors and apply to the components, is not perfect, but is pretty close to IntelliJ UI components and it is Compose.
This toolwindow is build with compose