Checking out a plugin

I started developing a plugin and tracked it with GitHub, and now I want to check it out on another computer. However, when I check it out, the module is not marked as a plugin. How do I fix this?

4 comments
Comment actions Permalink

Could it be because I ignored .idea/ in my .gitignore? Is there a way to mark the module as a plugin from the second computer?

0
Comment actions Permalink

The type of the module is stored in the .iml file. Did you check in your .iml file?


0
Comment actions Permalink

Yes, I did. The .iml file was checked in to GitHub.

This is the beginning of what the .iml file looked like on the 2nd machine:

 
<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">


So the .iml file had the correct info, but it still wasn't working as a plugin.

0
Comment actions Permalink

The aforementioned fact that the .idea/ directory was ignored in the .gitignore file was the issue. I checked the .idea/ directory in to GitHub from my first machine by removing it from the .gitignore file. Then when I cloned again on the second machine, it recognized the plugin properly as a plugin.

This is a useful guide for what to ignore and what to version control:
https://intellij-support.jetbrains.com/hc/en-us/articles/206827587-How-to-manage-projects-under-Version-Control-Systems

0

Please sign in to leave a comment.