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?
Please sign in to leave a comment.
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?
The type of the module is stored in the .iml file. Did you check in your .iml file?
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:
So the .iml file had the correct info, but it still wasn't working as a plugin.
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