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

Custom board menu selection reverts to default on new window open #2271

Closed
3 tasks done
per1234 opened this issue Oct 30, 2023 · 1 comment
Closed
3 tasks done

Custom board menu selection reverts to default on new window open #2271

per1234 opened this issue Oct 30, 2023 · 1 comment
Assignees
Labels
conclusion: resolved Issue was resolved 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 Oct 30, 2023

Describe the problem

For the convenience of the user, Arduino IDE automatically configures the board and port selection of a new IDE window according to the configuration of the previous window.

In addition to the primary board selection, some board definitions have "custom board options" that allow additional configuration via arbitrary submenus added under the Tools menu.

🐛 The configuration of the custom board options revert to the default values when a new window is opened.

To reproduce

  1. Select Tools > Board > Arduino AVR Boards > Arduino Nano from the Arduino IDE menus.
  2. Select Tools > Processor > ATmega168 from the Arduino IDE menus.
  3. Select File > New Sketch from the Arduino IDE menus.
    A new window will open.
  4. Open the Tools menu in the new window.
    🐛 The default ATmega328P option is selected in the Tools > Processor custom board option menu.
  5. Select Tools > Processor > ATmega168 from the Arduino IDE menus.
    Select File > Save As... from the Arduino IDE menus.
  6. Save the sketch to any name and location.
  7. Open the Tools menu in the new window.
    🐛 The default ATmega328P option is selected in the Tools > Processor custom board option menu.

Expected behavior

The custom board options configuration from the parent window are used in new windows.

Arduino IDE version

69b7365

Operating system

Windows

Operating system version

11

Additional context

The behavior described here was introduced at ce02e26 / #2241.

The described behavior does not occur when using the IDE build from ed2d8ad or earlier (but note those versions had a related fault #2240).


Originally reported by @mjs513 at https://forum.arduino.cc/t/is-there-a-m4-and-m7-usage-for-dummies-document-d/1180371/10

Additional reports

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
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Oct 30, 2023
@frankcohen

This comment was marked as duplicate.

@kittaakos kittaakos self-assigned this Nov 20, 2023
kittaakos pushed a commit that referenced this issue Dec 13, 2023
A new startup task ensures setting any custom board menu selection in a
new sketch window.

Closes #2271

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants