Been using version 1.8.19 on my Win10 machine for a long time. No problems. Out of the blue it will no longer launch. The initial window shows for 1-2 seconds. Thats it.
I removed 1.8.19 and re-install. Same thing.
Checked a few other apps... all working normal.
No idea what to do next.
How long did the initial window show when it was still working (2 seconds as well) ?
Does the icon disappear from the taskbar as well? If not, did you have a dual monitor setup, did you disconnect the second monitor and is the IDE still on the second monitor? If so, you can move the window with the keyboard (<alt><space>
invokes the context menu of an application window, test with a visible application how it works further)
The IDE comes with a debug version; it's installed in the same directory as the normal version that you can run from the command line; the output might shine some light on what is happening.
I'm not a Windows person, but can you use the file manager to find a known good script and try opening it with the IDE?
Edit: I found on Linux if the ino file you used last somehow gets corrupted (in my case a power fail), that will cause the IDE to crash like the Hindenburg. The only way I could get it working was force the IDE to load another script.
Thanks to both of you for responding. (Note that I am pretty much a lightweight in this arena). In the event I chose a somewhat primitive (but effective) solution. I run 1.8.19 on both my laptop and desktop. So after viewing some YT videos on the subject, I copied (from my working laptop) the folder "...Appdata > Local > Arduino15" and replaced the same folder on my (non-working) laptop. (SurferTim, is this what you were referring to?) While I found nothing specifically suggesting doing this, it seemed to me it was worth a chance. Bingo! Fired right up. But I had lost some stuff:
- The boards URL's in preferences.
- The "ESP32 Arduino" stuff in tools. (I only use arduino, ESP8266 and ESP32).
Easy enough to fix all that and now I am up and running again.