A few weeks ago I migrated from 1.8.19 to 2.1.0 by performing a new install, leaving 1.8.19 as is. The install detected my additional board types (ESP32) and then updated the libraries. I have a project targeting a Nano and the IDE prompted for one library update since install. The machine is running Win10 and is up to date with patches, etc.
I tend to leave the IDE running from the end of one day to the next. What I find is that the IDE editor still functions but when the Compile (or Upload) button is clicked the Compile progress bar appears but the IDE is locked up, requiring it to be closed in Task Manager. This basically happens after every extended period of inactivity where the machine will sleep/hibernate. All other applications running at the time recover and operate normally - only the Arduino IDE is needing to be 'End task' as when in this state attempting to close the app is unsuccessful.
The obvious workaround is to close the app if I am going to leave the machine for an extended period. This I can do but it is an inconvenience. I could also revert to 1.8.19 as it is still installed.
But I frequently (far more than the average user since I am regularly switching between three multiple machines as I do testing on each platform) put my computers through sleep cycles while Arduino IDE is running, yet I don't experience this problem of the IDE going into an "offline" state (where it loses communication with the backend). So it definitely doesn't occur universally on a sleep cycle.
Unfortunately it is very difficult for the Arduino IDE development team to investigate or prepare a fix for problems we can't reproduce personally.
If anyone can provide us with detailed instructions we can follow to reproduce the fault, that would be very helpful.
Is the problem possibly related to changing networks during sleeps? I've had several instances where switching networks (especially if the new one is having connectivity problems) caused the offline state and wondered whether other people might have an issue when putting their laptop to sleep and waking it up somewhere else.
Hi
Exact same problem here: every morning after waking up my PC, I find that the IDE went "offline" in the status bar.
You can edit the source, but all file commands fail including save ("Could not save the sketch. Please copy your unsaved work into your favorite text editor, and restart the IDE.")
You can't quit, either by file menu or the top right cross, you need to kill it in the task manager.
Seems independant of the presence of an arduino board plugged in.
Forcing sleep (even deep sleep) via start menu and waking up after a few seconds won't trigger the problem.
IDE version 2.2.1, windows 10 22H2, Dell Precision 3460
Hi @bruvi. The Arduino IDE developers are now tracking this bug here:
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject:
An update on the statement I made earlier in this topic:
I recently started occasionally experiencing this fault on multiple machines. Unfortunately I am not able to reproduce it reliably so I haven't been able to investigate whether the change in behavior is related to a regression in Arduino IDE, or if it occurs even with the IDE versions that previously never produced the fault for me (which would indicate the change was something in the environment produced by my system rather than a change in the IDE codebase).