custom plugin module does not appear while creating new project in WebStorm
|
I am developing a plugin for Jetbrains' WebStorm. I'm using Intellij IDEA as my ide for development. My problem is, when I debug my plugin from IDEA, it works as expected. I can see my custom module option on the menu when creating a new project. But when I build my plugin and upload the .jar in webstorm, I can't see that option on the menu. I also tried "remote debugging" in IDEA to WebStorm but failed to run. I added this line to my plugin.xml for enabling my plugin for all platforms:
Actually I know this works because if I try to run one of my plugin's action using shortcuts, it's working. But as i said my main problem is module option does not appear on the "new project" menu. Any ideas or suggestions? |
Please sign in to leave a comment.
Hi,
Small IDEs use slightly different API for project generators. IDEA uses `com.intellij.projectTemplatesFactory` extension point, while smaller IDEs use `com.intellij.directoryProjectGenerator`. Here's the example that works in both IntelliJ and small IDEs:
https://github.com/JetBrains/intellij-plugins/blob/master/AngularJS/resources/META-INF/plugin.xml#L97
https://github.com/JetBrains/intellij-plugins/blob/master/AngularJS/resources/META-INF/plugin.xml#L98
https://github.com/JetBrains/intellij-plugins/blob/master/AngularJS/src/org/angularjs/cli/AngularCLIProjectGenerator.java
https://github.com/JetBrains/intellij-plugins/blob/master/AngularJS/src/org/angularjs/AngularJSTemplateFactory.java
@Dennis Ushakov thank's for your reply but why am I supposed to use a project generator? I thought using module builders is enough for my project.
Small IDEs don't use module types during project generation (they use default one, e.g. WebModuleType for WebStorm), so the module builder just won't be called
Oh, I see. Thank you for explanation.