Go Down

Topic: IDE super slow to load / save - RESOLVED - due to dead path for recent sketches (Read 1 time) previous topic - next topic

Gaspacho

I've been stuck on this for days and finally found the problem so would like to share.

My IDE was taking up to a minute to initially open and the same time to save any changes. Ends up I recently opened a few sketches from a network share (just to look at them) and the share no longer exists.

It looks like for some inexplicable reason the IDE verifies the location of all your recent sketches when saving (Bug or just bad design?) and then sits and waits for a network timeout on each one.  If you have several it takes an age. I understand on load to enumerate recent sketches, but why on save!?

Anyways, to fix the problem simply delete the bad paths from preferences.txt (recent.sketches=) in your ArduinoData folder (Usually just under your Arduino work folder).

~Gaspacho

ballscrewbob

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Wasatch


Many Thanks!!! I've been searching for a solution for ages.

In my case, it's not even a bad path, just a sleeping networked computer.

Why should the IDE ever verify these paths until you try to open one?!

ReverseEMF

I'm currently having this very problem -- hellaciously long time-delay [Arduino IDE "frozen" doing nothing], whenever I "Load" or even just "Save" a sketch.

I looked for this "preferences.txt" file and only found one in the installation directory, with a Date modified date equivalent to the installation date--i.e. little chance that it was ever updated with visited paths.  And that pans out, because an inspection of the file found no recent.sketches tag, let alone any path entries that would qualify.

BTW: I searched in the Program Data directory and in the Users directory [on my Win10 PC]--no preferences.txt file--or any other file that might contain a history of this ilk.


So, does anyone out there, have any other ideas?  Maybe this was changed in a subsequent update?
"It's a big galaxy, Mr. Scott"

Please DON'T Private Message to me, what should be part of the Public Conversation -- especially if it's to correct a mistake, or contradict a statement!  Let it ALL hang out!!

ballscrewbob

@ReverseEMF

Your best bet is to make the "hidden folders" visible.
That will let you see things that some of the Arduino stuff hides in.

Alternatively just hit the "File", "Preferences", then hit the direct link to the folder below the URL box.
Once that opens up CLOSE the IDE as any changes may not take properly with it still open.

Path will be along the lines of " C:\Users\name\AppData\Local\Arduino15 " unless you made any changes to the installation.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

ReverseEMF

@ReverseEMF

Your best bet is to make the "hidden folders" visible.
That will let you see things that some of the Arduino stuff hides in.

Alternatively just hit the "File", "Preferences", then hit the direct link to the folder below the URL box.
Once that opens up CLOSE the IDE as any changes may not take properly with it still open.

Path will be along the lines of " C:\Users\name\AppData\Local\Arduino15 " unless you made any changes to the installation.
Well, I learned something, today!  I did already have Hidden Files set to Visible ['cuz I ain't afraid ;)], BUT, I didn't know that the Win10 search feature ignores Hidden Files, even though...!

So, I was able to find the preferences.txt file, right about where you said it might be!  And, after editing out all those old paths, the save is, now, lickity-split!
 
So, thank you too much [as J. Wellington Wimpy would say].
"It's a big galaxy, Mr. Scott"

Please DON'T Private Message to me, what should be part of the Public Conversation -- especially if it's to correct a mistake, or contradict a statement!  Let it ALL hang out!!

nigelepsom

Thanks. That was a great help - Ballscrewbob's post is really on the money. After weeks (what do I mean weeks - months) of waiting and waiting for the IDE to save, it is now super fast again. Thanks once more guys.

Go Up