Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix idea plugin compatability #2318

Merged
merged 6 commits into from
Oct 11, 2022
Merged

Fix idea plugin compatability #2318

merged 6 commits into from
Oct 11, 2022

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Sep 15, 2022

IDEA doesn't provide backward compatibility policy, and breaking changes can happen in any version, without prior deprecation:

https://plugins.jetbrains.com/docs/intellij/api-changes-list.html

Because of that, we can't remove plugin.until.build, and have to build Compose plugin for each new version of IDEA separately (see Update)

Update 1:
I removed plugin.until.build anyway. In most cases there won't be a broken plugin. And if it will be broken, we will know it during IDEA EAP. Considering this, better when users don't wait the new version, and use already available one.

Update 2:
If we omit plugin.until.build, then it has default value +8. Returned, but made the default value big enough.

What we should do after that commit, is make sure, that we don't forget to check this compatibility. And ship a new stable version for every new stable IDEA.

The ideal way is to run runPluginVerifier on CI for the latest version, which will fail the build, if our plugin isn't compatible.

But for some reason, there is no EAP for IDEA 2022.3 here:
https://jb.gg/intellij-platform-builds-list

IDEA doesn't provide backward compatibility policy, and breaking changes can happen in any version, without prior deprecation:

https://plugins.jetbrains.com/docs/intellij/api-changes-list.html

Because of that, we can't remove `plugin.until.build`, and have to build Compose plugin for each new version of IDEA separately

What we should do after that commit, is make sure, that we don't forget to check this compatibility. And ship a new stable version for every new stable IDEA.

The ideal way is to run `runPluginVerifier` on CI for the latest version, which will fail the build, if our plugin isn't compatible.

But for some reason, there is no EAP for IDEA 2022.3 here:
https://jb.gg/intellij-platform-builds-list
@igordmn
Copy link
Collaborator Author

igordmn commented Sep 15, 2022

We also need to release 1.1.2, because 1.1.1 is only compatible with IDEA 2022.1

@igordmn
Copy link
Collaborator Author

igordmn commented Sep 15, 2022

It seems if we omit "until", it has a default value +8: https://plugins.jetbrains.com/plugin/16541-compose-multiplatform-ide-support/versions/Snapshots/223890

@igordmn igordmn merged commit 98b16c5 into master Oct 11, 2022
@igordmn igordmn deleted the fixIdeaPluginCompatability branch October 11, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants