I'm trying to import and run the IntelliJ git4idea (Git Integration) plugin in order to play around and contribute some of my own code.
I've pulled the Intellij community edition from the github repo, and imported the git4idea plugin as a project. I'm running the Intellij community edition
My main issue is this:
After importing all the modules, the git4idea module comes up as a general module type, and not a plugin module type.
This means that when trying to create a new run\debug configuration, I get [none]
under "Use classpath of module", instead of of the ability to select the git4idea plugin. This obviously results in a "Run configuration error: no plugin module specified for configuration".
So the question is - How can I change the general type of imported "git4idea" to plugin type?
Or better yet, what are the steps required in order to import and build/debug/run a plugin from the Intellij community edition repo?
I had the same
no plugin module specified for configuration
issue. To work around it, instead of importing, I created a new plugin project and used the existing code directory.After changing
type="JAVA_MODULE"
totype="PLUGIN_MODULE"
in*.iml
file I was getting following error -To fix this go to -
Module Settings -> Platform settings -> SDKs
.Add new SDK
Intellij Platform plugin SDK
Once this is added got to
Module Settings
againModule Settings -> Project settings -> project
.I was able to solve this by manually reordering file directories, sorting out dependencies and editing the .iml file. The type of plugin is defined by changing
type="JAVA_MODULE"
totype="PLUGIN_MODULE"
....
This is the answer given by Dmitry Jemerov on the official Jetbrains plugin development forum: