intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Provide a way to run IDE with separate backend and frontend processes and have the plugin installed on the frontend side

Open chashnikov opened this issue 1 year ago • 4 comments
trafficstars

Describe the need of your request

If you want to develop a plugin that should work in the frontend process (JetBrains Client), it'll be good to have a way to debug such a plugin without manually creating its distribution and installing it.

Proposed solution

In #1562 a task which runs the backend part and the frontend part of the IDE in separate processes is introduced. By default, it includes the developed plugin in the backend process. Until we can automate determine whether the plugin is supposed to work on the backend side, on the frontend side or both, let's provide a configuration option to manually specify which process should have the plugin.

chashnikov avatar Mar 15 '24 10:03 chashnikov

JFI, IdeaVim plugin works only on the client side, so this would be really helpful for us.

AlexPl292 avatar Mar 20 '24 11:03 AlexPl292

Is this planned for 2.0? It's the only reason IdeaVim would use split mode, so would be great if it can be in added sooner rather than later. Thanks!

citizenmatt avatar Apr 16 '24 12:04 citizenmatt

@citizenmatt I'm working on this, hope to have it done soon.

chashnikov avatar Apr 24 '24 09:04 chashnikov

Cool. Thank you!

citizenmatt avatar Apr 24 '24 09:04 citizenmatt

This should be fixed in 2.0.0-beta2. Use the following configuration in build.gradle.kts:

intellijPlatform {
    splitMode = true
    splitModeTarget = SplitModeAware.SplitModeTarget.FRONTEND
}

In order to use this, you need to firstly migrate the plugin to IntelliJ Platform Gradle Plugin 2.0, see the guide.

chashnikov avatar May 15 '24 15:05 chashnikov

It appears that currently this doesn't work on macOS due to customized layout of IDE installation used by intellij-platform-gradle-plugin. I'll fix this on IDE side RDCT-1375.

chashnikov avatar May 22 '24 10:05 chashnikov

The problem with installing plugin on macOS should be fixed if the next 2024.2 EAP build of the IDEs.

chashnikov avatar May 24 '24 07:05 chashnikov