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

"File > Examples > Examples for <board name>" and "Sketch > Include Library > Arduino libraries" menu groups are missing after IDE start #2239

Closed
3 tasks done
kittaakos opened this issue Sep 26, 2023 · 0 comments · Fixed by #2242
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

@kittaakos
Copy link
Contributor

kittaakos commented Sep 26, 2023

Describe the problem

When I start the IDE, and the board is already selected from the previous app session, the File > Examples > Examples for <board name> and Sketch > Include Library > Arduino libraries menu groups are missing.

To reproduce

  1. Select File > New from the Arduino IDE menus.
  2. Select File > Save As... from the Arduino IDE menus.
  3. Save the sketch to any convenient name and location.
    This step is performed in order to associate the board+network port selection with a sketch that can be restored on IDE startup.
  4. Select any board from the Arduino IDE menus.
  5. Select File > Quit from the Arduino IDE menus.
  6. Start Arduino IDE.
    The saved sketches that were open during the previous session will be restored.
  7. Select the window of the sketch that has the board pre-selected due to the association created in the previous steps.
  8. Open the File > Examples menu.
    🐛 The "Examples for <board name>" section of the menu (including the examples that should be listed there) is absent.
  9. Open the Sketch > Include Library menu.
    🐛 The "Arduino libraries" section of the menu (including the examples that should be listed there) is absent.

Expected behavior

Expected after IDE start:

Screenshot 2023-09-26 at 13 43 31 Screenshot 2023-09-26 at 13 43 40

Actual after IDE start:

Screenshot 2023-09-26 at 13 46 18 Screenshot 2023-09-26 at 13 46 23

Arduino IDE version

2.2.1

Operating system

  • macOS
  • Windows

Operating system version

  • macOS 13.5.2
  • Windows 11

Additional context

Breaking change: #2165

Workaround

  1. Select any other board from the Tools > Board menu in Arduino IDE.
  2. Select the target board in Arduino IDE once again.

After doing that, the menus will be populated as expected.

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
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Sep 26, 2023
kittaakos pushed a commit that referenced this issue Sep 29, 2023
kittaakos pushed a commit that referenced this issue Sep 29, 2023
kittaakos added a commit that referenced this issue Oct 5, 2023
 - update status bar if board+port is restored,
 - refresh the debug toolbar if board+port is restored,
 - init `Include Library` if board+port is ready, and
 - init library examples if board+port is ready

Closes #2237
Closes #2239

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Oct 5, 2023
@per1234 per1234 changed the title File > Examples > Example for BoardName and Sketch > Include Library > Arduino libraries menu groups are missing after IDE start "File > Examples > Examples for <board name>" and "Sketch > Include Library > Arduino libraries" menu groups are missing after IDE start Feb 9, 2024
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.

1 participant