Can someone explain the Examples dropdown menu in the file menu

It seems obvious. You click file, and navigate to examples, and all the libraries installed (which have an examples folder) ar shown, under 3 sections; official, verified for current board, custom.

Except, it will randomly not show the custom, or verified libraries.

If i want to use more than 1 library example in my workflow, im resorting to navigating folders.

Is this some sort of weird feature, or just a straight bug?

2.3.0

Hi @kelvinmead. Are you able to easily reproduce the problem, or does it occur more rarely? If it is reproducible then we could try to do some investigation into the problem.

The Arduino IDE developers are tracking this bug here:

One thing I have noticed is the IDE has an "asynchronous" behavior regarding the menu items that are generated from dynamic data (as opposed to the static items like File > New Sketch). If you open the menu soon after opening an IDE window or changing the board selection, the IDE shows you the incomplete menu rather than blocking the use of the UI until processing is finished. Users with a computer that has good performance and not many boards platforms/libraries/sketches present for the IDE to process would probably not ever manage to open the menu quickly enough to encounter this, but if you have a slower computer or a large accumulation of Arduino stuff installed then it is more likely. When the incomplete menu is caused by opening it too early, you will always see the complete menu if you close it, wait a little while for the IDE to complete processing of the environment, and then open it again.

There was a bug in Arduino IDE 2.1.x that caused this behavior:

That bug is fixed in the Arduino IDE 2.3.0 release made earlier this week, so it is not expected that you will experience that behavior after you update your IDE.

Even if it was incompletely resolved or there was a regression after the time of the fix, it still doesn't match this part of the symptoms described by @kelvinmead:

That bug only affected the File > Examples > Examples for <board name> section of the menu, not File > Examples > Examples from Custom Libraries.

once i did a computer shutdown and reboot all the examples issues disappeared...

I'm glad it is working now. Thank you for taking the time to post an update!

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.