Make Plugin Compatible with other IDEA-IDEs
Hi,,
i just uploaded a very simple plugin for TFS Checkin Policies, because i thought it might help somebody. I tested it for Rider and IntelliJ and i think it might be usable for every IDE as it is really simple. In my config.xml i have a
<depends>com.intellij.modules.rider</depends>
to mark it as compatible with rider. I wanted to add intellij with
<depends>com.intellij.modules.java</depends>
But my IDE does not find this dependency. Also I just found out, that I am able to "override" this dependencies in the plugin upload page and wanted to add IntelliJ and Webstorm, as I tested it with these IDEs.
First: Did I understand the documentation right, that this is the way to go?
Second: Will the plugins be able to be installed, if I "override" the plugin.xml in the upload page? Or will it result in an exception, as the plugin.xml does state otherwise?
请先登录再写评论。
I now solved it by adding
to the plugin.xml and removed the other depends field. This works as I want it to, but I am not really sure why, as i can add .vcs or any other dependency from here: http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
I just do not really understand what I am defining here and that makes me a little insecure to just upload this to the plugin repository.
Hello Sheiss,
By adding a <depends> you specify a dependency that is required for your plugin. Therefore when you've added `com.intellij.modules.rider` you've made your product compatible with Rider only, because it is the only product that has this dependency. `com.intellij.modules.lang` is correct dependency to use if you want to make your plugin compatible with all products. "Override" feature is there to limit number of products compatible with the product (that is required in some rare cases). It is a bug if it was available to add other products.
Ivan
Ok thanks!