Starting with Arduino IDE 2.1.0, the factory examples are listed, but won't load. For example, the ubiquitous Blink sketch is listed, but when I select it, nothing happens. I expect the blink sketch to open in the editor. There is no problem with IDE 2.0.4.
I'm going to ask you to run Arduino IDE from the command line, then post the output that is generated from a failed attempt to open an example in a reply here.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Close all Arduino IDE windows if the IDE is already running.
Open your Applications folder in Finder.
Open the Utilities folder.
Double-click on "Terminal".
Type the following command in the Terminal window:
Attempt to open the "Blink" example sketch, just as you did before.
Switch back to the Terminal window.
Press ⌘+A.
This will select all the text in the Terminal window.
Press ⌘+C.
This will copy the selected text to the clipboard.
Open a forum reply here by clicking the Reply button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
Press ⌘+V.
This will paste the output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the Reply button to post the output.
Please let me know if you have any questions or problems while following those instructions.