Page 1 of 1

Updating to 1.0.4 - Missing Green.h

Posted: Sun Apr 28, 2013 1:08 am
by phrusher
Hi,

I get an exception when updating from 1.0.3 to 1.0.4 at around 67%. Same thing when running the update utility but that also reports red.h as not found. Even though the update fails the version number is changed so the libraries version reports 1.0.4.

Other than that it looks like a great update so I'm looking forward to try it out :)

Code: Select all

Updating /libraries/ReefTouch/Green.h
java.io.FileNotFoundException: https://raw.github.com/reefangel/libraries/master/ReefTouch/Green.h
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
	at java.net.URL.openStream(URL.java:1010)
	at processing.app.UpdateCheck$DownloadFile.copyURLtoFile(UpdateCheck.java:274)
	at processing.app.UpdateCheck$DownloadFile.run(UpdateCheck.java:243)
	at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-5" java.lang.NullPointerException
	at sun.nio.ch.FileChannelImpl.transferFrom(FileChannelImpl.java:591)
	at processing.app.UpdateCheck$DownloadFile.copyURLtoFile(UpdateCheck.java:287)
	at processing.app.UpdateCheck$DownloadFile.run(UpdateCheck.java:243)
	at java.lang.Thread.run(Thread.java:619)

Re: Updating to 1.0.4 - Missing Green.h

Posted: Sun Apr 28, 2013 7:16 am
by rimai
Thanks for reporting. I'll check and get back

Re: Updating to 1.0.4 - Missing Green.h

Posted: Sun Apr 28, 2013 7:48 am
by rimai
Try it now.
You may need to change preferences.txt file to trigger the auto-update again.
http://arduino.cc/en/Hacking/Preferences
Also, change the libs version to 1.0.3 on ReefAngel.h

Re: Updating to 1.0.4 - Missing Green.h

Posted: Sun Apr 28, 2013 8:04 am
by phrusher
No its working from within the Arduino studio but the RA Update Utility is still looking for ReefTouch/Green.h and Red.h.

Thanks!

Re: Updating to 1.0.4 - Missing Green.h

Posted: Sun Apr 28, 2013 8:04 am
by rimai
That update utility is deprecated :(

Re: Updating to 1.0.4 - Missing Green.h

Posted: Sun Apr 28, 2013 8:11 am
by phrusher
Ah, ok. Guess I have an old installation then :) I'll try and keep that in mind.