Skip to content

Saved sketch is not opened after "Save As" operation #829

Closed
@per1234

Description

@per1234

Describe the bug

The established behavior of the Arduino IDE and applications in general is that the saved file/project is opened after a "Save As..." operation.

🐛 Arduino IDE does not open the saved sketch after a "Save As..." operation. Instead, the sketch that was open in the IDE before the operation remains open.

To Reproduce

  1. Select File > New from the Arduino IDE menus.
    🛈: The bug is not specific to new sketches.
  2. Select File > Save As... from the Arduino IDE menus.
  3. Save the sketch with the name "SaveAsTarget".

🐛 The "SaveAsTarget" sketch is not opened by the IDE.

Expected behavior

Target sketch is opened in the IDE after a "Save As..." operation.

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc3-snapshot-2f9bf86
    Date: 2022-02-11T14:52:06.341Z
    CLI Version: 0.21.0 [10107d24]

Additional context

I bisected the bug to 112153f (it does not occur in the build from the previous commit 69ac1f4).


The target sketch is created.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions