intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Add plugin without specifying version

Open olivernybroe opened this issue 5 years ago • 9 comments

Description

It would be so awesome if I could add plugins without having to specify their version also.
e.g.

setPlugins('com.jetbrains.php')

Issue

So I basically only develop plugins for phpstorm and I often wanna run them against EAP. However doing that is a gigantic hazel.
Using EAP version of IntelliJ is easy, that's just setting the version to LATEST-EAP-SNAPSHOT. However then I want to use a compatible php plugin version, so I have to go to the plugin website, find a matching version and copy the version number.

Then the next day when I want to continue working on it, a new EAP was released and I then have to go to the plugin website to get the new matching version. It would be sooo nice if it found the latest compatible version automatically 👍

My current workflow is just to not test against EAP as that is to much extra work.

olivernybroe avatar Oct 16 '20 06:10 olivernybroe

There could be several compatible plugin versions available at the same time

YannCebron avatar Oct 26 '20 08:10 YannCebron

@YannCebron Yes, but I think a sensible default would be to use the newest version?

For example if I install a plugin in the IDE, I would expect it to install the newest version. If I wanted to use an older version than the newest, I should specify that specifically.

olivernybroe avatar Oct 26 '20 09:10 olivernybroe

@olivernybroe What if the latest released version doesn't cover the IDE you use for building the plugin?

hsz avatar Oct 30 '20 18:10 hsz

Then I should get an error maybe.

My thoughts were just if this change would make sense as that is how the IDE handles it normally.

@hsz I totally get your point though, and might still just give a bunch of other problems when using LATEST-EAP-SNAPSHOT.

I guess my real issue is just that I find that I have to go through a lot of steps to find a compatible version with the IDE version I am using. And it would be nice if we in some way could simplify this process.

olivernybroe avatar Oct 30 '20 19:10 olivernybroe

Maybe we can handle it within the DevKit plugin instead with some kind of autocomplete? It'll already know the current target version, so we can ask the Marketplace API (some implementation would be necessary on their side as well) for the matching plugin versions. What do you think about that @YannCebron?

hsz avatar Oct 30 '20 19:10 hsz

Ok, in fact we already have such endpoint available:

curl -X POST -H "Content-Type: application/json" https://plugins.jetbrains.com/api/search/compatibleUpdates --data "{\"pluginXMLIds\": [\"com.jetbrains.php\"], \
"build\": \"IU-202.7706\"}"

hsz avatar Oct 30 '20 19:10 hsz

I think that would be amazing solution and help a lot of users out!

Just a note on that, versions are defined in the properties file when using the plugin template 👍

olivernybroe avatar Oct 30 '20 20:10 olivernybroe

I have the same problem. Figuring out what PHP plugin is compatible with LATEST-EAP-SNAPSHOT is a pain. Would be great if there will be any solution.

funivan avatar Oct 31 '20 18:10 funivan

There's this issue regarding code insight/validation for plugin.xml/Gradle within the IDE https://youtrack.jetbrains.com/issue/IDEA-252797.

YannCebron avatar Nov 02 '20 10:11 YannCebron

There is no clear solution to this issue. Closing for now.

YannCebron avatar Feb 22 '24 16:02 YannCebron