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?
If not, click the "Browse" button that is located at the right side of the "Sketchbook location" preference field.
A dialog will open.
Select the C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES folder from the dialog. 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
Click the "Choose" button.
Click the "OK" button.
Select File > Quit from the Arduino IDE menus.
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.
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!
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.