Run plugings in debug mode from IDE

I’m trying to use plugins in Spark that are in the project, not the ones in APPDATA. I looked at the source code to see how the plugins are loaded by Spark and did not find any way to get into the classpath plugins.
I need this to debug the plugin in order to figure it out better. Is there a way to launch Spark and plug-ins for debug from the intellij idea IDE?

Right now you can’t run a plugin right from IDE. I doing this by manually build the the plugin jarand then the resulted jar to the~/.Spark/plugins` like:

cd plugins/translator/; mvn package
mv plugins/translator/target/translator-3.0-spark-plugin.jar ~/.Spark/plugins/translator.jar
rm -fr ~/.Spark/plugins/translator/

Then when starting the Spark from IDE in debug mode all the breakpoints inside of the plugin works as expected. If I made a change I make a manual recompile of the class and hot reload it. In the IntelliJ “Build” / “Recomplile TranslatorPlugin.java”.

There was some mechanism to load a plugin directly from the sources folder by using -Dplugin option to specify path to the plugin.xml. E.g. -Dplugin=~/src/Spark/plugins/translator/target/classes/plugin.xml. But currently it doesn’t work because the Spark doesn’t load plugin classes dynamically. If it can be fixed I’ll create a task for this.

What a plugin are you trying to debug?

Sorry for the late response.