# IDE 2.3.0 won't close

**URL:** <https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082>\
**Category:** IDE 2.x\
**Created:** [February 10, 2024, 4:41am UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082 "2024-02-10T04:41:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 10, 2024, 4:41am UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/1 "2024-02-10T04:41:12Z")

</div>

Was using the IDE a lot today. Keeping the instances at one or two. If I leave the computer for some hours it complains it lost the cloud (forget the exact wording) then wouldn't close. Had to go to the "Task Manager". It showed 9 lines that were "Arduino IDE"

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 10, 2024, 6:01am UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/2 "2024-02-10T06:01:05Z")

</div>

> [@JohnRob](#):
>
> If I leave the computer for some hours

Did the computer sleep during that time?

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 10, 2024, 3:17pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/3 "2024-02-10T15:17:21Z")

</div>

Don't recall but most likely it did.

Do you know if, after the initial startup of the IDE, it monitors anything via the internet?

John

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 10, 2024, 9:29pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/4 "2024-02-10T21:29:28Z")

</div>

I have that same problem (won't close) and can't Save or Save As - most annoying when one has unsaved code mods. Have to use Task Manager to close. Restarting returns to "normal".

Also, Serial Monitor sometimes stops printing after a new download - only way to recover is to close (if you can) and relaunch.

Sometimes goes "not connected". Sometimes cannot reconnect except by closing & relaunching. This may be associated with after downloading when a serial device is connected to Rx (pin 0), but not sure as it is not consistent.

I like IDE 2 a lot but these bugs have me wanting to go back to the IDE 1 version.

Could this be connected to having multiple sketches open? Sometimes one sketch will go not connected while another(s) will remain connected - I dunno.

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 10, 2024, 9:45pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/5 "2024-02-10T21:45:49Z")

</div>

I had 2.1.0 (?) before 2.3.0 and had none of these issues.

I'll wait a little then if not sorted out will go back to 2.1.0

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 10, 2024, 10:10pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/6 "2024-02-10T22:10:14Z")

</div>

Sounds like a plan. And I think I will try to stick with only one sketch open to see if that solves anything.

ETA, I now see under "Related Topics" , "I can't close the IDE 2.0.3", "IDE 2.0.3 - Can't close window, can't compile" and "Can't close Arduino IDE!".

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [February 11, 2024, 5:21am UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/7 "2024-02-11T05:21:12Z")

</div>

> [@nosmoke](#):
>
> most annoying when one has unsaved code mods.

It depends on what you prefer but you can reduce the risk of loosing work. There is an _auto save_ option.

1. Press `<F1>` or `<ctrl><shift>P`.
2. Type _save_.
3. Check if you have the autosave option enabled.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/b/7/0/b70760fe430e02380d322310ceaef34a98e08c56.png)

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 11, 2024, 3:01pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/8 "2024-02-11T15:01:13Z")

</div>

> [@JohnRob](#):
>
> most likely it did.

I asked because there is a known bug where the IDE can sometimes go into a non-functional state it it is running while the computer sleeps. The Arduino IDE developers are tracking this bug here:

> <https://github.com/arduino/arduino-ide/issues/2148>
>
> \### Describe the problem
> 
> Users reported that IDE2 could become non-functional… after waking the OS from sleep. It has happened on macOS and Windows (\[eclipse-theia/theia#12707\](https://github.com/eclipse-theia/theia/issues/12707)). I tried various \[\`pmset\`\](https://ss64.com/osx/pmset.html) options but could not reproduce the defect. Searching boards, libraries, and compile+upload do not work.
> 
> !\[CleanShot 2023-07-19 at 06 50 33@2x\](https://github.com/arduino/arduino-ide/assets/1405703/6b842104-91f4-4cf4-96b3-972d4b6ad8c1)
> 
> 
> \### To reproduce
> 
> Sleep the OS for enough time (I do not know how much) while IDE2 is running, wake the OS, IDE2 does not work. Even quitting the app does not do anything.
> 
> \### Expected behavior
> 
> After the OS wake, IDE2 works.
> 
> \### Arduino IDE version
> 
> 2.1.1
> 
> \### Operating system
> 
> macOS
> 
> \### Operating system version
> 
> 13.4.1
> 
> \### Additional context
> 
> Related IDE2 change: https://github.com/arduino/arduino-ide/commit/30136b0ef208a48042ecb1e18407ef525b772252
> Upstream issue: https://github.com/eclipse-theia/theia/issues/12707
> 
> \#### Additional Reports
> 
> \- https://github.com/arduino/arduino-ide/issues/2297
> \- https://github.com/arduino/arduino-ide/issues/2331
> \- https://forum.arduino.cc/t/ide-2-1-0-freezes-during-compile-after-a-period-of-sleep/1138808
> \- https://forum.arduino.cc/t/ide-2-1-0-freezes-during-compile-after-a-period-of-sleep/1138808/4
> 
> \### Issue checklist
> 
> \- \[X\] I searched for previous reports in \[the issue tracker\](https://github.com/arduino/arduino-ide/issues?q=)
> \- \[X\] I verified the problem still occurs when using the latest \[nightly build\](https://www.arduino.cc/en/software#nightly-builds)
> \- \[X\] My report contains all necessary details

> [@JohnRob](#):
>
> Do you know if, after the initial startup of the IDE, it monitors anything via the internet?

No monitoring. It does access the Internet after certain actions performed by the user. For example, if you install a library via Library Manager, the library is downloaded from the Internet.

However, the IDE does a lot of communication via TCP/IP. This communication is not over the Internet, and not even over the LAN. It is instead through the [localhost](https://en.wikipedia.org/wiki/Localhost). This is the communication between the various components of the IDE application. If for some reason the IDE can't make those communications, it loses all real functionality. You might see a message in Arduino IDE about it being "offline" in this case. "Offline" means that the frontend is not able to communicate with the backend internally to your computer rather than that it is not able to connect to the Internet. There is also a different warning about the Internet-dependent features being unavailable when the IDE doesn't have access to the Internet.

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 11, 2024, 5:56pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/9 "2024-02-11T17:56:38Z")

</div>

Thank you for your detailed explanation of the internal communications. The extra detail makes the difference 😀

John

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 11, 2024, 5:59pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/10 "2024-02-11T17:59:00Z")

</div>

So I grew up with PC's (i.e.as they grew up). I've learned to save often. Sometimes to my detriment. When I pass on, the undertaker will notice I will still make the ctrl-s motion even after I've gone.

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 11, 2024, 11:00pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/11 "2024-02-11T23:00:03Z")

</div>

I'm not a big fan of autosave as it can be a detriment if code changes don't work out.

For now, I think a workaround to prevent losing code changes on system freeze is to copy the sketch (if that part is still functional) and paste after IDE relaunch.

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 12, 2024, 6:08pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/12 "2024-02-12T18:08:41Z")

</div>

There is another way, edit your sketch in a independent editor (notpad++, sublime etc)

The IDE will follow the code changes and if the IDE crashes the code is still in your editor.

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 12, 2024, 7:35pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/13 "2024-02-12T19:35:23Z")

</div>

Interesting but how does the IDE follow the code changes?

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 12, 2024, 9:03pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/14 "2024-02-12T21:03:32Z")

</div>

Apparently the IDE monitors the code in the open file, if the code changes while the IDE still has it open, the IDE will update the code. Of course the external editor must open the same file as the IDE. Its been this way since v1.

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 12, 2024, 9:26pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/15 "2024-02-12T21:26:38Z")

</div>

Just tried that but there seems to be no effect (changes to IDE do not reflect in external editor (Notepad in this case) or vice-versa. Are there other steps required to sync the two?

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 12, 2024, 9:54pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/16 "2024-02-12T21:54:06Z")

</div>

I just tried with MS Notepad and it worked fine. The update in the IDE will not happen until you save any changes in Notepad.

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 12, 2024, 10:15pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/17 "2024-02-12T22:15:37Z")

</div>

I tried that too (in MS Notepad) but the IDE did not change.

Just to be clear, I have both the IDE and Notepad open and both with the same .ino.  
If I make a code change in Notepad and switch to the IDE, will the change be automatically reflected there? I assume here it is not necessary to re-open the sketch in the IDE for this to work.

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 12, 2024, 11:08pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/18 "2024-02-12T23:08:23Z")

</div>

Screen shot with Notepad in focus and a text change made.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/1/1/c/11cf2f22dbc45c38b8b6d38b560aee30d4152255.png)

Same shot after saving the file in Notepad, Note Notepad is still in focus.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/d/0/7/d07ff4aa9bdf023b2479b4224ba19b0141827063.png)

---

<div class="post-metadata">

**Author:** ![nosmoke](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nosmoke](https://forum.arduino.cc/u/nosmoke)\
**Post date:** [February 12, 2024, 11:31pm UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/19 "2024-02-12T23:31:41Z")

</div>

Still can't get it to work but I notice your Notepad doesn't look the same as mine (different top panel). Anyhow, here's my screenshot:

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/e/9/c/e9cc98bf95a2766ceff6a245e152b08f8010482d.png)

Shown after Notepad save.

I'm on Win 10 if that makes a difference.

Just noticed that the following is displayed when I exit the IDE:

"The file 'GPS\_OLED\_Speed\_and\_Course.ino' has been changed on the file system"

So, the IDE does seem to monitor changes to the file when exiting at least.

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [February 13, 2024, 12:01am UTC](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082/20 "2024-02-13T00:01:46Z")

</div>

I'm no windows 11. Its been too long to remember if this worked in Win10

[Next page](https://forum.arduino.cc/t/ide-2-3-0-wont-close/1222082.md?page=2)
