This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2 Replies Last post: Aug 18, 2013 8:20 PM by Opher Vishnia  
Opher Vishnia Newbie 7 posts since
Aug 16, 2013
Currently Being Moderated

Aug 16, 2013 9:00 PM

How to import and run existing plugins from intellij community edition repo?

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.

 

http://i.stack.imgur.com/weYD6.png

 

 

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".

 

http://i.stack.imgur.com/p3Q6K.png

 

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?

Dmitry Jemerov Master 12,514 posts since
Aug 19, 2002
Currently Being Moderated
Aug 17, 2013 10:15 AM in response to: Opher Vishnia
Re: How to import and run existing plugins from intellij community edition repo?

The easiest answer to this is "don't". The IntelliJ IDEA Community Edition project is set up to be developed as a whole, and the dependencies are set up accordingly. If you want to hack on the Git plugin, you simply run IDEA using the provided run configuration, it runs with all plugins enabled, and you simply make whatever changes you need and test them using the main run configuration.

 

If you really want, you can set up a new plugin module and point it to the source code of the git4idea plugin inside the IntelliJ IDEA Community Edition Git checkout. This is not too hard, but it's something you'll need to do from scratch, and you can't use the existing .iml file.

More Like This

  • Retrieving data ...