-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Library Manager] New version not showing up and version sorted incorrectly #10158
Comments
I notice the name was changed between the the 1.5.0+arduino-2 and 1.5.0+arduino-3 tags. My "black box" understanding of the indexer is that it should still pick up new tags after the name change, but they will be pinned to the name at the time of the original addition of the library to the index until a request to update the name is submitted, so I wouldn't expect the changed
It's shown under the |
The problem is that you changed library name, this is not allowed. The indexer will ignore all releases with the wrong name.
If you want I can rename the library in the library manager, but the previous releases will be lost (because they will be ignored after the change of name). Other suggestions that comes from my personal taste but I would like share anyway 😄:
|
About the version numbers I've looked at the SEMVER specification about "build metadata" (i.e. the identfier followed by the
So if I read it correctly the precedence between:
is undefined and the IDE theoretically may choose any of those and still be correct... |
Hi, @matthijskooijman this issue is preventing to get the latest release, the previous one do not compile anymore with the updated Arduino IDE. Ciao Marco |
Woah, seems I totally missed all the replies on this issue back when they were posted, not sure how that happened. Thanks for you quick replies, apologies for only following up now.
The reason for both is actually the same: This is an Arduino port of an upstream library, which I wanted to emphasize with the name. Especially since some development has happened in the Arduino port and upstream sort of halted development, it no longer seemed proper to use the IBM name. But I can probably rename it back for now, it's not a really big deal. Similarly, for the version numbers, I didn't want to change the upstream version number, but use them verbatim and add an arduino-specific addition, so I would not conflict with new upstream releases. Given that upstream is totally dead and has been pretty much since the start, I guess I can just bump to 1.5.1 for now. To further complicate matters, I've not really developed much on this library, and there is another fork (MCCI LMIC) which did do more development and did bump versions, so I didn't want to conflict with that for now. Anyway, thanks for the feedback, I think I know enough to sort out my own mess now :-) |
It turns out that changing this name prevents the Arduino library manager from picking up new versions, unless the name is changed in the Arduino database, which prevents the old versions from being picked up. This reverts the name, leaving the 1.5.0+arduino-3 version out of the library manager, but allowing the next release to be picked up again. See also arduino/Arduino#10158 This reverts commit ba1265d.
This version does not have any functional changes, but just marks the library as deprecated. This bumps the minor version, rather than the `+arduino-x` version previously used, since it turns out that these `+` versions are not correct use of semver and caused the Arduino IDE to not sort them properly. See also arduino/Arduino#10158
This version does not have any functional changes, but just marks the library as deprecated. This bumps the minor version, rather than the `+arduino-x` version previously used, since it turns out that these `+` versions are not correct use of semver and caused the Arduino IDE to not sort them properly. See also arduino/Arduino#10158
This version does not have any functional changes, but just marks the library as deprecated. This bumps the minor version, rather than the `+arduino-x` version previously used, since it turns out that these `+` versions are not correct use of semver and caused the Arduino IDE to not sort them properly. See also arduino/Arduino#10158
This version does not have any functional changes, but just marks the library as deprecated. This bumps the minor version, rather than the `+arduino-x` version previously used, since it turns out that these `+` versions are not correct use of semver and caused the Arduino IDE to not sort them properly. See also arduino/Arduino#10158
I have this library added to the library manager: https://github.com/matthijskooijman/arduino-lmic
There's two problems:
The version numbers are sorted in reverse. I suspect this is something with the + used in the version number? 1.5.0+arduino-0 is always shown as the most recent version, which causes people to install an old version instead of the latest version. This is probably something in the IDE source which I could dig into myself, just haven't done so yet...Seems I already reported this as Library manager mis-sorts (non-semver or with + or - in version?) #8510.The text was updated successfully, but these errors were encountered: