-
-
Notifications
You must be signed in to change notification settings - Fork 470
Open
Labels
status: waiting for informationMore information must be provided before work can proceedMore information must be provided before work can proceedtype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the problem
in Arduino IDE 2.3.6, the behavior of "Save As" has changed compared to previous versions. Previously, the IDE would remember the last used directory and open the "Save As" dialog in that folder. However, in 2.3.6, it defaults to the Arduino default sketch directory (usually Documents/Arduino), regardless of where you last saved or opened a sketch.
To reproduce
use "save as"
Expected behavior
should go to the last used directory, but goes to default one instead
Arduino IDE version
2.3.6
Operating system
Linux
Operating system version
Suse linux
Additional context
until 2.3.4 did work correctly, note: cannot install lates nighly build
Issue checklist
- I searched for previous reports inI verified the problem still occurs when using the latestMy report contains all necessary detailsTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Metadata
Metadata
Assignees
Labels
status: waiting for informationMore information must be provided before work can proceedMore information must be provided before work can proceedtype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
per1234 commentedon May 1, 2025
Hi @aalucia. Thanks for your report. I just did some testing with Arduino IDE 2.3.6 on a Linux machine and was not able to reproduce the fault. For me, the behavior of which folder is selected in the "Save As" dialog by default is exactly the same in 2.3.6 as in 2.3.4.
It might be that my failure to reproduce the fault is because I am not using the correct procedure. Please provide detailed step by step instructions I can follow to reliably reproduce the fault on my computer.
aalucia commentedon May 2, 2025
[-]save as behaivour changed[/-][+]"Save As" dialog always defaults to sketchbook folder[/+]per1234 commentedon Jun 3, 2025
Thanks for the clarification. Unfortunately I am still unable to reproduce the fault.
I performed the following procedure with Arduino IDE 2.3.6 on a Ubuntu 24.04.2 machine:
A new Arduino IDE window opens.
~/Arduino/foo/bar
.The "bar" sketch window closes.
The "bar" sketch opens in a new Arduino IDE window.
The "Save As" dialog opens with the
~/Arduino/foo
folder selected:This seems to be the correct behavior, whereas if the fault had occured as you described I would have expected it to instead open with the
~/Arduino
folder selected (I have my "Sketchbook folder" preference set to the~/Arduino
folder).@aalucia if you perform the procedure I described above, do you get a different result than I did?
I did find some reports of the problem on Arduino Forum:
However, those reports are from years ago, so they don't match with your observation that this is a regression introduced in 2.3.6 (or maybe 2.3.5).
aalucia commentedon Jun 5, 2025
Hi,
the behaivour is as follows:
If I save under ~/Arduino/foo/bar and I follow your direction the second time I "save as" it's in the correct directory (/foo...)
If I save under another directory (not under /Arduino) then the "save as" it always takes me to /Arduino
while with v 2.3.4 I get the following interface, where I can also save "bookmarks" :
I'm quite puzzled ...
Thanks for your help.
per1234 commentedon Jun 6, 2025
OK, great. This is the essential information. I can now reproduce the fault once I produce the required conditions of saving the sketch to a location outside the sketchbook folder.
However, I am not able to reproduce this part of your report:
The fault also occurs for me when using Arduino IDE 2.3.4.
Please perform this procedure and then report your results:
A new Arduino IDE window opens.
~/arduino_arduino-ide_2725-test/foo
.Now please comment here to tell us whether the Save As dialog opened in the expected location
~/arduino_arduino-ide_2725-test/
, or if it instead opened in the sketchbook folder.That is out of scope for this issue. You are welcome to open a separate issue to report this apparent regression related to "bookmarks", but please focus all discussion here exclusively on the "defaults to the Arduino default sketch directory (usually Documents/Arduino), regardless of where you last saved or opened a sketch" fault that is the subject of this issue.