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

Add option to runIde using a IJ-community source

Open brian-mcnamara opened this issue 4 years ago • 3 comments

There are times when I need to make changes to IJ community and inspect the outcome from my plugin. It would be nice if I could point the plugin to the local IJ sources and have runIde use that as the runtime.

I think its fair to require the sources to be compiled before attempting to call runIde

brian-mcnamara avatar Apr 13 '21 18:04 brian-mcnamara

I think its fair to require the sources to be compiled before attempting to call runIde

If IDE is already built, you can employ runIde#ideDirectory to point to the compiled distribution. I don't see what else can be added in gradle-intellij-plugin in that regard. If you see, please share your ideas. I think, compilation of the intellij-community shouldn't be part of gradle-intellij-plugin.

zolotov avatar Apr 21 '21 11:04 zolotov

Yes, creating the distribution and using ideDirectory is the workaround, but creating the distribution is another step outside a normal compile. I was hoping we could just point to the out/production path and run IJ through the compiled classpath. However just a thought depending on the complexity, I believe Yann mentioned this would be very complex in which case its not worth it.

brian-mcnamara avatar Apr 22 '21 20:04 brian-mcnamara

I was hoping we could just point to the out/production path and run IJ through the compiled classpath.

Got it. I’ll check how hard that would be to implement. Looks like the only problem is to read the project model and build a proper classpath out from it.

zolotov avatar Apr 22 '21 21:04 zolotov