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

Minor issue: Arduino IDE warning about #2

Open
pfeerick opened this issue Apr 8, 2017 · 0 comments
Open

Minor issue: Arduino IDE warning about #2

pfeerick opened this issue Apr 8, 2017 · 0 comments

Comments

@pfeerick
Copy link

pfeerick commented Apr 8, 2017

tl;dr Version number for bossac entry needs to be changed if you want to get rid of an annoying warning message in the log section every time you open the Arduino IDE Boards Manager.

Have been getting an Invalid version found: 1.3a-arduino red text warning message from the Arduino IDE every time I open the Boards Manager for quite a while, and finally decided to do something about it.

I knew it came from the the Digistump board manager JSON file, but not why. It appears that the version number parsing on the Arduino IDE Board Manager is very pedantic. The version number must follow some variant of the SemVer version number standard, or it gets cranky.

So basically, the current '1.3a-arduino' does not work, and but something like '1.3-a-arduino' appears to... it seems that as long as there is a number after the dot, any text (or hyphen then text) is ignored?

  • If there are no dots (.), parse version as an integer and form a Version from that integer using Version.forIntegers
  • If there is one dot, split version into two, parse each part as an integer, and form a Version from those integers using Version.forIntegers
  • Otherwise, simply parse version into a Version using Version.valueOf

https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.6.x-package_index.json-format-specification

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

No branches or pull requests

1 participant