How can you change module type to plugin from a checked out repo?

已回答

I am trying to build a plugin I wrote: https://github.com/johnthagen/clion-cppcheck

I am using IntelliJ Ultimate 2016.3.4.

I am following the plugin development guide here: https://www.jetbrains.com/help/idea/2016.3/plugin-development-guidelines.html

After I check out the code from GitHub, I open it with IntelliJ. The problem is that IntelliJ seems to auto-detect that is just a Java project rather than a plugin project. I have found no way to change this and tell IntelliJ that I need to treat the module as a plugin module instead.

What steps do I need to take to actually get IntelliJ to build the module as a plugin?

0

change the module type in the .iml file from:

<module type="JAVA_MODULE" version="4">

to:

<module type="PLUGIN_MODULE" version="4">

 

 

 

0

It was actually already set to:

<module type="PLUGIN_MODULE" version="4">

But it seems like IntelliJ didn't recognize the file. I happened to right click on cppcheck.iml and added the module manually and then IntelliJ recognized the module as a plugin module.

0

The IDE creates a new iml file in the .idea directory and puts a reference to it in the .idea/modules.xml file.

I have edited this file on many occasions to point the reference back to the original iml file for the module:

 <module fileurl="file://$PROJECT_DIR$/idea-multimarkdown.iml" filepath="$PROJECT_DIR$/idea-multimarkdown.iml" />

The IDE created file will have .idea subdirectory inserted in the fileurl and the file path attributes, both need to be removed to point it to the original iml file.

 

0

I modified the (only) module file to change to a PYTHON_MODULE. No more problems. Well, for one thing it opens up 10x faster.

0

请先登录再写评论。