• Login
Community
  • Login

Dumb question time: compatible-versions and old-versions-compatibility — What am I missing?

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
3 Posts 2 Posters 539 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Coises
    last edited by Oct 7, 2023, 11:44 PM

    I’m starting to look at how to add my plugin to Plugins Admin.

    My understanding is that the plugins lists are baked into a given version of Notepad++. Any given version of Notepad++ never downloads a new version of the plugins list, nor does it check to see if a plugin has been updated since the version given in the plugins list.

    If I have that wrong, can someone explain what I have wrong?

    If I have that right — what is the purpose of compatible-versions and old-versions-compatibility? Notepad++ will never “look ahead” to find updates for a plugin that came after that version of Notepad++ was released. I can’t figure out under what conditions the lower bound of compatible-versions, or any information in old-versions-compatibility, would be used.

    Notepad++ could, I suppose, examine the upper bound of compatible-versions (since new versions could be released without the plugin author being available to make a pull request to the plugins list); but how could a plugin author guess at which later version the plugin will become incompatible? It’s not like we have API versions that change only when there is a backward compatibility breach. Any plugin will continue to work until Notepad++ changes something crucial to it, and no one will know when that will be until it happens.

    What am I missing? I don’t understand the use of these parameters.

    P 1 Reply Last reply Oct 7, 2023, 11:53 PM Reply Quote 0
    • P
      PeterJones @Coises
      last edited by PeterJones Oct 7, 2023, 11:58 PM Oct 7, 2023, 11:53 PM

      @Coises said in Dumb question time: compatible-versions and old-versions-compatibility — What am I missing?:

      If I have that right — what is the purpose of compatible-versions and old-versions-compatibility?

      Because Don thought they were useful… or at least, thought that at some indeterminate time in the future, when Notepad++ actually does again update its nppPluginList at times other than releases of Notepad++ (which is something we’ve always hoped for, since the Mass Plugin Migration), that it would be useful.

      Also, in theory, someone manually installing a plugin in an older version of Notepad++ could check the current nppPluginList source, and see whether the most recent version of a plugin was compatible with the older N++ that they are using. I doubt any users actually do that, but they in theory could.

      And the upper bound is used for “previous versions of the plugin”, so if superPlugin v1.0 worked through N++ v8.3, but superPlugin v1.2 required a feature first available in v8.4, then a user could see that if they want to use superPlugin v1.0 (because it’s the last that worked for them), they would have to not upgrade Notepad++ beyond v8.3.

      (There are contributors who thought the whole system was pointless; whether you continue to be such a contributor is up to you. I have never contributed a plugin, and it’s possible I’ve mis-understood or mis-explained some of the details; this is just my conclusions from watching some of it transpire and watching the consequences.)

      C 1 Reply Last reply Oct 8, 2023, 12:07 AM Reply Quote 2
      • C
        Coises @PeterJones
        last edited by Oct 8, 2023, 12:07 AM

        @PeterJones said in Dumb question time: compatible-versions and old-versions-compatibility — What am I missing?:

        at some indeterminate time in the future

        Thanks, @PeterJones. That pretty much explains why I couldn’t make sense of it: it’s not something that does anything useful now, just a guess at what might be useful in the future. I won’t worry much about it, then — guesses about what might be useful in the future have a high rate of irrelevance when the future arrives, no matter who is doing the guessing.

        1 Reply Last reply Reply Quote 3
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors