Using IDE 2.0.0-rc6 and ESP32s3 devmod, I have a sketch open, I create a new project, add some stuff in the sketch file, create a new tab add some stuff, press CTRL-S to save the new sketch.
Enter new name and press enter.
The screen goes blank and only shows "index.html" at the top.
System does not automattically recover.
Hi @Xinonix. I believe it is the bug tracked here:
I found a specific set of conditions that would reliably reproduce the issue and figured that would be sufficient for the developers to continue the investigation. However, I suspect that there are other conditions it could occur under.
I do not need any special conditions to get the above "wheel of death".
Select File->New. Have a cup of coffee while it opens/starts the new sketch.
I then usually select Save As.. to give the new sketch a sensible name. I can actually enter some code and then select Save As.., does not matter. It actually saves it and dies. Always, never an exception.
Need to shut that window and select File->Open and reload the saved sketch, another cup of coffee, I am going to end with caffeine poisoning. Actually it is not really that bad when starting a new, or opening, a sketch, only about 20-25 seconds.
By the way. It does not close when selecting File->Close Editor. I must select the top right red X
That is expected. File > Close Editor only closes the selected editor, if it is closable. It does not close the Arduino IDE window. If it did that, it would be redundant to File > Close.
Because of this sort of confusion about the purpose of that menu item, I have proposed its removal:
I just checked all that. I was not fully aware of the intended Close Editor function (actually still not - I can not get it to close anything from any sketch, tab etc. So I do not know what "Editor" it is supposed to close.)
Interesting. When functioning normally I find the following:
File -> Close only shuts the sketch IDE window the Close was selected from.
If I select File->Quit all currently open sketch windows are closed.
Also, If I closed multiple sketch windows with File->Quit, all those windows are opened when I next open the IDE (and it seems to take no longer than opening a single window).
I support the request to remove the confusing Close Editor option.
BTW, after a Save As.. hang, none of the close or Quit options from the file menu works. Only the top right red X.
It will close the currently selected editor if it is closable. I'll provide a simple demonstration:
Select File > Examples > 01.Basics > Blink from the Arduino IDE menus.
Select any board from the Tools > Board menu.
Right click on the pinMode call in the editor.
Select "Go to Definition" from the context menu.
The file wiring_digital.c from the board's core will now open in an editor tab. Note that this tab has an X icon.
Select File > Close Editor from the Arduino IDE menus.
The wiring_digital.c editor tab will now close.
But I think most users would simply click the X icon or use the Ctrl+W keyboard shortcut in this situation, so I don't see that there is much value in the "Close Editor" option.
That is the intended behavior, and the same as Arduino IDE 1.x.
This advancement was introduced in Arduino IDE 2.0.0-rc4:
All sketches closed within 1000 ms of exit are restored the next time you start the IDE. So if you are very quick about using File > Close or the window close control, you will get the same behavior, but File > Quit is the best way to ensure all open sketches are closed within the restore time window.
OK. So File > Close Editor performs the same function as the X on closeable tabs etc. I know about the X to close a tab.
Never knew about the Quit feature, been using ver 1 a long time. I like the option and now use it. I noticed the feature also in ver 1 when I selected Quit in ver 2 and started ver1, I got the same editors opened.