Arduino Forum

Development => Suggestions for the Arduino Project => Topic started by: JanD on Feb 11, 2011, 09:34 am

Title: Downloading new IDEs
Post by: JanD on Feb 11, 2011, 09:34 am
Hello,

it always bugs me to download a new Arduino IDE. Why? Because I have about 15 libraries downloaded from various places over the internet. To redownload them for a new IDE is not so easy because of that. Something that would make it much easier is if there there a installer/updater what only exchanged/added the new files needed into the already downloaded IDE. What would make it easier for non-geeks to download the IDE too. My dad (owner of KDAB (http://www.kdab.com/)) already talked about making something like that for the Arduino IDE, but he hasn't enough time.

So please, make it easier to install/update the Arduino IDE!

JanD
Title: Re: Downloading new IDEs
Post by: GaryP on Feb 11, 2011, 09:59 am
I have left the previous Arduino folder as it is. Just drop the new files and overwrite the old set. Separately "installed" libraries stays, unless newer version with the same name are added in to new IDE-package.
All my codes are elsewhere safe, where other documents are as well.

Now I must ask if there's any problems coming with that method? Arduino IDE don't change anything in Windows, so it should be ok? Everything works fine, but is there something that should be aware?

Cheers,
Kari
Title: Re: Downloading new IDEs
Post by: JanD on Feb 11, 2011, 10:05 am
Let's see what I've got right:

1. You download the new version.
2. You unzip it into the installation path of the old version.
3. The old files get overwritten.
4. The files that aren't changed stay as they there.

Have I got it right? What would at least make sense.

JanD
Title: Re: Downloading new IDEs
Post by: u0421793 on Feb 11, 2011, 10:36 am
I don't mess around with all those complicated steps, I just download it, then double click it. You get a window with the arduino app, and an alias of the Applications folder, and you just drag the app to the folder. That's it -- it just works!
Title: Re: Downloading new IDEs
Post by: GaryP on Feb 11, 2011, 12:44 pm
Complicated? Just as you said, new files over the old files. Only one step, right?
:smiley-roll:

Kari
Title: Re: Downloading new IDEs
Post by: JanD on Feb 11, 2011, 12:47 pm
Ok, I think I have understood. I will download 0022 later.

Thanks,
JanD
Title: Re: Downloading new IDEs
Post by: mowcius on Feb 11, 2011, 01:15 pm
Quote
Now I must ask if there's any problems coming with that method? Arduino IDE don't change anything in Windows, so it should be ok? Everything works fine, but is there something that should be aware?

Umm, there shouldn't be any issues but you'll end up with a load of unused old files.

It would be better (as has been discussed before), if user libraries can be loaded from user documents locations. Then the old IDE could be deleted, a new one loaded and the user-added libraries would remain.
IDE bundled libraries would be updated with no effect on user libraries.
Title: Re: Downloading new IDEs
Post by: GaryP on Feb 11, 2011, 02:38 pm
Well, that is not a problem. Every now and then I can do a cleaning, but what is few hundred extra megabytes with these new computers...
;)

My point was that so called installation with never packages over he old is simple.

But it would be a nice improvement to be able to combine at least two different independent library sets. Users responsibility would be to check that there is no two identically named libraries. Maybe we get that option someday, but I'm good with this.


Cheers,
Kari
Title: Re: Downloading new IDEs
Post by: Coding Badly on Feb 11, 2011, 08:36 pm
Quote
It would be better (as has been discussed before), if user libraries can be loaded from user documents locations


They are.  Libraries should no longer be placed in the Arduino IDE folder but should be placed in...

{SketchFolder}\libraries
Title: Re: Downloading new IDEs
Post by: logic on Feb 11, 2011, 09:09 pm
There's a nugget of a good idea tucked in here, I think. Has anyone given thought to something similar to Perl's CPAN (or Python's cheeseshop/easy_install/pip, or Ruby's gem)? ie. a simple means of distributing libraries of code to users in a useful manner? Good IDE integration could make for a pretty painless new user experience.

(Mind you, the problem of one library making use of another in a uniform, cross-platform manner probably needs to be addressed first.)
Title: Re: Downloading new IDEs
Post by: mowcius on Feb 11, 2011, 09:10 pm

Quote
It would be better (as has been discussed before), if user libraries can be loaded from user documents locations


They are.  Libraries should no longer be placed in the Arduino IDE folder but should be placed in...

{SketchFolder}\libraries


They are?
Seems to me they're in {arduino-0022}\libraries
Title: Re: Downloading new IDEs
Post by: logic on Feb 11, 2011, 09:12 pm
Libraries that are shipped with the IDE live there, and you can install libraries there if you like, but you can also install them in a "libraries" subdirectory of your sketch folder. This is "kind of a big deal" on Linux, where the distribution may have supplied a package of the Arduino IDE, which a normal user account wouldn't have permission to write to.
Title: Re: Downloading new IDEs
Post by: JanD on Feb 12, 2011, 05:56 pm
I didn't think this would make up discussion like this. But the solution just to have two different library paths would do it.
Something for the future (and I mean future): Then pressing update in the IDE it automatic updates the program code of the IDE, core files etc. it then looks in some place there as many as possible libraries are located if any library that you have downloaded has a new version. If that's the case it downloads the new version of that library. As sad, for the future.\

JanD