How to make pycharm plugin compatible with any new version?

Answered

Hi - I have a simple PyCharm plugin that's not published to the repository - just installed via zip files. I've noticed that every time PyCharm updates to a new major version (I think every 20XX.Y), I have to update the plugin for it to be compatible.

I have sinceBuild set to an older version, but it seems that doesn't really solve my problem, and updating the "version" seems to do the trick. Here's what I did to make it work for 2020.1: https://github.com/galonsky/pycharm_copy_as_import/commit/cf312187cf59a09bfd3c82379d078a288bedbf1f

 

Is it necessary to up that version for every new IDE version? Or is there a better way?

0
2 comments

You can add:

updateSinceUntilBuild false

to intellij task in build.gradle file.

Then in plugin.xml, only include the since-build element.

Note that this necessarily won't make the plugin "compatible" with all versions above since-build, it just means that the plugin can be installed/enabled. Check out Plugin Verifier to see compatibility issues.

0
Avatar
Permanently deleted user

Thanks! I'll give that a try.

0

Please sign in to leave a comment.