Lost all my libraries in 1.8.19

Most of my 56 installed libraries in
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\libraries
have suddenly gone AWOL.

Unlike version 2 in C:\Program Files, this folder C:\Program Files (x86)\Arduino does not have a file or folder mentioning IDE 1.8.19., which is the version I'm using.

Nothing I've tried has worked. So from this thread by @ptillisch

I was trying to get a log file by editing the Powershell command advised here
& ".\Arduino IDE"
to
& ".\Arduino"
But that just opens my last sketch.

Furthermore, in Preferences my themes have gone as well, leaving only Default.

Shortly before discovering this (which seems to imply the entire installation has 'reset' somehow), I had a crash of the IDE. It was when trying to compile a Forum post sketch that I'm now reluctant to reopen. The error was something like 'java exception in thread heap space'. Had to use Win 10 Task Mgr to forcibly close Arduuino.

All work now at a halt. Best way to proceed please?. If no other option, maybe just reinstall 1.8.19?

Hi @Terrypin. Please try this:

  1. Start Arduino IDE.
  2. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  3. Check whether the "Sketchbook location" preference field shows the expected path:
    C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES
    
  4. If not, click the "Browse" button that is located at the right side of the "Sketchbook location" preference field.
    A dialog will open.
  5. Select the C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES folder from the dialog.
    :exclamation::exclamation::exclamation: Note that libraries are stored in the libraries subfolder of the sketchbook folder so DO NOT set your sketchbook location to C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\libraries
  6. Click the "Choose" button.
  7. Click the "OK" button.
  8. Select File > Quit from the Arduino IDE menus.
  9. Start Arduino IDE again.

If the problem was caused by an incorrect "Sketchbook location" preference value, you should now find that your libraries are accessible to the IDE once more. You should also find that all the custom themes you installed are selectable from the preferences dialog again.

Your path has a subfolder Dropbox
Is this folder synchronised with this online-storage-service with the name Dropbox?

Did you look up if the files are still in your online-dropbox?

Did you adjust this online-service to delete files locally if the files were deleted online?

In general IMHO storing things like that in a dropbox-folder is a bad idea.

best regards Stefan

You're a star, thanks a bunch for the fast solution.

First place I'd looked was that sketch location in Preferences. It had somehow become the default (?) of C:\Users\terry\Documents\Arduino\libraries
and in my impatience I must have wrongly changed it to
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\libraries

Couple of hours of the morning gone to that careless mistake!

:slightly_smiling_face:

Thanks Stefan, but @ptillisch spotted my careless mistake.

I've been using Drobox extensively for years with very few problems, and recall none affecting Arduino. Its major benefit to me is that I can edit sketches on my iPad (downstairs in the lounge, or away from home), although having to first convert .ino to .txt.

You are welcome. I'm glad it is working now.

Regards,
Per