Another (but repeatable) Save error IDE 2.1.1 Windows

I am developing an IoT sketch at the moment, and have an isolated network for the devices I am testing. This isolated network does not have internet access.

If I make changes to the sketch while my Windows 11 machine is connected to the development network, then the sketch will not save (I get the nice error box asking me to copy using my favorite editor etc ). This is because the IDE attempts to always save the current sketch just before compiling, and for some reason, there is a dependancy to have an internet connection at that point. I think this may be associated with the cloud sketch feature ( but I'm not using it ) which seems to expect (and checks for) a connection to the arduino sketch cloud. I suspect that this might be an oversight ?

If, when I get that error, I change network connections to the internet accessible network, then the compile (and save) works fine.

Hi, if you use 2.1.1, please get the nightly build: https://www.arduino.cc/en/software#nightly-builds

Previous forum post: Arduino IDE 2.1.0 do not save sketch without internet.
Original GitHub issue: Sketch not saving while Offline · Issue #2079 · arduino/arduino-ide · GitHub.
Here is why you need to use the nightly build: The IDE does not save the sketch when the Internet is off · Issue #2142 · arduino/arduino-ide · GitHub.

dankeboy36,
Many thanks for your reply. I installed the latest nightly update, and as you predicted, the issue is solved.
Very much appreciated, so thanks again.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.