Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board selection reverts after a "Save As..." #657

Open
3 tasks done
per1234 opened this issue Dec 2, 2021 · 0 comments
Open
3 tasks done

Board selection reverts after a "Save As..." #657

per1234 opened this issue Dec 2, 2021 · 0 comments
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Dec 2, 2021

Describe the problem

🐛 After doing a "File > Save As..." operation, the board selection changes back to whichever one happened to be selected when the sketch was opened.

To reproduce

  1. Select File > New from the Arduino IDE menus.
  2. Take note of which board is selected.
  3. Select a different board.
  4. Select File > Save As... from the Arduino IDE menus.
  5. Save the sketch.

🐛 The selected board is now the one that was selected when the window was first opened (which could even be "No board selected"), not the one that was selected immediately before performing the "Save As... operation.

I think this could be very confusing to the user who doesn't notice the change and then wonders why compilation or uploads no longer work (or even the bricking of their board in certain cases).

Expected behavior

Board selection is preserved through "Save As... operations.

Arduino IDE version

Initial report

2.0.0-rc1-snapshot.f0d9894

Last checked with

2.0.0-rc9.2-snapshot-989300f

Operating system

Windows

Operating system version

10

Additional context

Reported at https://forum.arduino.cc/t/file-menu-save-as-fails-to-save-chosen-board/1022454

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants