I just tried it for the first time, and when I try to save "Blink" in another folder other than "Examples" to the one to edit it, but I can not saved changes: when I open the new Blink edited, the old Blink appears without save.
On the other hand, in another attempt to save "blink" in another folder other than "examples", it has also happened to me that it has created a loop of Blink folders, one inside another, (.../blink/blink/blink/ blink/blink/blink/...), so that it has exceeded the maximum length allowed for the PATH, and that now I can not delete. >:(
I opened Arduino IDE 2.0 Beta 3, from the desktop icon, and a empty Sketch File appears whose name is the current date.
I open Blink from File-> Examples-> 01.Basics-> Blink, and said Sketch appears
File-> Save AS, and I keep in Z:\prue_arduino\
I modify the saved file.
Save the file with File-> Save. Here it is supposed to be saved, but it does not.
Press the Close Window button and the message "ARE YOU SURE YOU WANT TO CLOSE THE SKETCH? Any Unsaved Changes Will Not Be Saved. "
I open the file "Z:\prue_arduino\Blink\Blink.ino", but the original Blink file appears.
This error does not happen in a new empty sketch, which is saved correctly. As I say, it only happens with the examples, as far as I have tried.
Regarding the loop of folders generated ...\Blink\Blink\Blink\Blink\Blink\Blink\Blink... It happened to me when trying to open the saved file "Z:\prue_arduino\Blink\Blink.ino" and try to modify it by running the mentioned steps 3 to 7, (using "File-> Save As" and/or "File-> Save").
Having tried these combinations, several times without success, the result is:
Hi @jmchuenbolon. Thanks for the report and additional information. This is a known bug:
Saving sketches inside sketches has never been supported, but the classic Arduino IDE prevented it with a helpful message, whereas Arduino IDE 2.x has this unfortunate behavior of creating huge number of nested folders (which is the very reason it's not supported).
If you happen to figure out how to delete this Z:\prue_arduino\Blink, would you mind sharing your technique. I happen to have one of these folders as a souvenier of my beta testing work and haven't managed to get rid of it. I'm currently resigned to keeping it around as a pet. I guess I'll have to come up with a fun name for the little rascal.
I had this problem of infinite subfolders this morning. This i really a big and annoying problem to be fixed in priority. To remove them I had to install git bash, and run the command rm -fr folder_path
I wasn't even able to get rid of mine with rm -fr, but I was inspired by your comment to try again, and it worked this time! I remember I had later changed the root folder name to hopefully get the full path under the Windows maximum length, and maybe I never tried rm -fr after that change, or maybe I needed to restart my computer.
Anyway, I agree that fixing it should be a priority and I am confident that it will be fixed very soon.