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

后端 未结 4 1649
南旧
南旧 2021-01-01 16:29

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 co

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 16:32

    After changing type="JAVA_MODULE" to type="PLUGIN_MODULE" in *.iml file I was getting following error -

    Error running 'IdeaPlugin': Wrong SDK type for plugin module
    

    To fix this go to -

    1. Module Settings -> Platform settings -> SDKs.
    2. Click on Add new SDK
    3. Select Intellij Platform plugin SDK
    4. For home directory select your Inetllij installation dir
    5. Select JAVA SDK you want to use with it.

    Once this is added got to Module Settings again

    1. Module Settings -> Project settings -> project.
    2. In Project SDK change the JAVA sdk to the SDK we just added in the above steps.
    3. Run/Debug you plugin now.

提交回复
热议问题