Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add v2.0.5 to Boards Manager JSON file#21

Merged
NicoHood merged 1 commit intoNicoHood:masterfrom
per1234:v205-json-update
Sep 26, 2015
Merged

Add v2.0.5 to Boards Manager JSON file#21
NicoHood merged 1 commit intoNicoHood:masterfrom
per1234:v205-json-update

Conversation

@per1234
Copy link
Contributor

@per1234 per1234 commented Sep 26, 2015

I'm happy to make any changes, just let me know.

@NicoHood
Copy link
Owner

Thanks!

  • The board names are wrong. I've updated the names and added 2 new boards.
  • The errors are correct, 1.6.6 only
  • Lets say I find a bug in this release, is it possible to redo this under the same version number?

@per1234
Copy link
Contributor Author

per1234 commented Sep 26, 2015

The board names are wrong. I've updated the names and added 2 new boards.

Ok, I'll fix that.

Lets say I find a bug in this release, is it possible to redo this under the same version number?

You can but the problem is that the IDE notifies the user when there is a new version of an installed board so if the version number isn't changed they won't get a notification of the update. In order to install the updated 2.0.5 the previously installed one will need to be removed and then 2.0.5 reinstalled.

@NicoHood
Copy link
Owner

Can you also add a note that the user needs to upload the bootloader itself as well?

@per1234
Copy link
Contributor Author

per1234 commented Sep 26, 2015

Boards manager doesn't really have a spot for adding notes(though I could add a note under "Boards included in this package). There is a More Info link that currently points to https://github.com/NicoHood/HoodLoader2 and I can also add a Online Help link to a different URL if you want to add the note to the documentation at either of those locations.

@NicoHood
Copy link
Owner

nah thats totally okay. just add the new boards. people should be aware of that. I cannot make everything backwardscompatible and still stable. however the bootloader itself is even backwards compatible

@per1234
Copy link
Contributor Author

per1234 commented Sep 26, 2015

Boards names updated:
clipboard01
Note there is a bug in the way Boards Manager displays information that changes between versions: arduino/arduino-ide#1493

NicoHood added a commit that referenced this pull request Sep 26, 2015
Add v2.0.5 to Boards Manager JSON file
@NicoHood NicoHood merged commit 36dcefd into NicoHood:master Sep 26, 2015
@NicoHood
Copy link
Owner

Thanks a lot for you help!

The funny thing is you can never add the latest json file to the release since it would change the checksum inside. I also added one commit for a bit release note changes but thats fine and not important. People who use the board manager shouldnt care anyways.

Since I do not want to destroy my test environment, could you please check if that worked all correct?

Question:
Can I add a dependency for IDE 1.6.6? If not, could you please file a bug at the Arduino repo? You know this probably better than me.

@per1234
Copy link
Contributor Author

per1234 commented Sep 26, 2015

Thanks

You're welcome, I'm always happy to add new versions to the JSON files, just let me know.

People who use the board manager shouldnt care anyways.

I agree, chances are most don't even know where the files are downloaded to so they won't look at the downloaded documentation. They can always click on the More Info link in Boards Manager and read the online information.

I tested it out, installation, compile, and Burn Bootloader/Upload Using Programmer with Uno and Mega 2560 all work fine.

I don't think it's possible to use the current tool dependency system for requiring a certain version of the IDE because it installs the required tools if they aren't present and it couldn't do that with the IDE. I guess a system would need to be implemented where if the IDE doesn't meet the required minimum version then installation would be disabled with a message that it requires an IDE upgrade with a link to the Arduino download page.

@NicoHood
Copy link
Owner

Would you like to open a feature request for the last statement? That would really help here since a lot of people might get an update notification now.

@per1234
Copy link
Contributor Author

per1234 commented Sep 26, 2015

I made a post in the Arduino forum to see if anyone knows a way to do it that I overlooked: http://forum.arduino.cc/index.php?topic=349752. If I don't find a solution there I'll go ahead with the feature request.

@per1234
Copy link
Contributor Author

per1234 commented Sep 27, 2015

pYro_65 suggested that you use preprocessor directives to check for the IDE version:

#if ARDUINO < 10606
#error HoodLoader2 v2.0.5 requires Arduino IDE 1.6.6 or greater. Please update your IDE or use a previous version of HoodLoader2.

You could put it in pins_arduino.h if you added the variants that you reference from the Arduino core.

@per1234
Copy link
Contributor Author

per1234 commented Sep 27, 2015

Or maybe 1.6.6 is only required for the boards that use the HoodLoader2 variant so you could still reference the others from the Arduino core?

@NicoHood
Copy link
Owner

Simple but good.
5409131

Do you know if I can push a 2.0.5-r2 soon? I do not want to name it 2.0.6. Maybe the release was a bit fast XD

@per1234
Copy link
Contributor Author

per1234 commented Sep 28, 2015

Simple but good.

Great, I'm glad there was a solution!

Do you know if I can push a 2.0.5-r2 soon

Boards manager considers 2.0.5 to be a higher version than 2.0.5-r2. I also tried 2.0.5.1 and it's considered an invalid.version
clipboard01
I'm happy to add a new version any time, just let me know.

@NicoHood
Copy link
Owner

2.0.5.2 works? Its somehow a long version number but at least an idea.

Or we simply overwrite it. Hopefully not all people have updated?
I want to add some other features as well, so I want to wait a bit anyways. Or I should bump the bootloader version to 2.1.x

@per1234
Copy link
Contributor Author

per1234 commented Sep 28, 2015

2.0.5.2 works?

No, unfotunately only 3 version numbers are allowed because they use the semver specification. It's up to you how you want to handle the versioning, I'm happy to do the overwrite or whatever when you're ready. I do think that 2.0.5-r2 will cause problems though because Boards Manager automatically installs the highest version unless the earlier version is selected so people may end up getting 2.0.5 and think they have the most recent.

@NicoHood
Copy link
Owner

NicoHood commented Oct 7, 2015

@per1234
Copy link
Contributor Author

per1234 commented Nov 3, 2015

@NicoHood can you verify arduino/Arduino#3795 (Need to open Boards Manager twice in Arduino IDE 1.6.6 after first adding the new Boards Manager URL before the entry will appear in Boards Manager)? If this is real(which it certainly appears so to me) then I think a note of the issue should be added to the Installation via Boards Manager section of the HoodLoader2 wiki now that 1.6.6 has been officially released.

@NicoHood
Copy link
Owner

NicoHood commented Nov 4, 2015

I rather think that you should push the github issue. Well the problem is, that 1.6.6 is out now and sealed. Meaning the next fix will arrive in month.

I wanted to try it out, but our firewall here blocks the download. And at home I do not want to mess up my development environment.

Thx for your support.

@per1234
Copy link
Contributor Author

per1234 commented Nov 4, 2015

With nobody else bothering to confirm the issue I couldn't know if it was isolated to my system but now I know of one other who has also experienced it so hopefully they'll report to the issue also. I try not to be a nag as I know the developers have lots of things to do but 1.6.6 should never have been released with this unfixed.

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.

2 participants

Comments