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?
请先登录再写评论。
change the module type in the .iml file from:
to:
It was actually already set to:
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.
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:
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.
I modified the (only) module file to change to a PYTHON_MODULE. No more problems. Well, for one thing it opens up 10x faster.