Description
Describe the problem
Arduino IDE 2.x supports two types of sketchbook:
- local
- remote (shared with Arduino Cloud sketchbook)
When creating a new sketch, the process is different depending on whether the user plans to save it to the local or the remote sketchbook (#1580). This can be done via either of two methods:
- Clicking the "New Sketch"/"New Remote Sketch" button in the "Sketchbook" view.
- Selecting "New Sketch"/"New Remote Sketch" from the File menu.
🐛 Attempting to create a new remote sketch via the latter method fails silently if the "Remote Sketchbook" widget is not open.
To reproduce
- Open the "Sketchbook" view.
- Click the globe icon (🌐) to open the "Remote Sketchbook" widget.
- If you have not already authenticated to your Arduino Cloud account, click the SIGN IN button and sign in to your Arduino account.
- Switch back to the Arduino IDE window.
- Close the "Sketchbook" view.
ⓘ This step is not required, but might eventually become required if the "Local Sketchbook"/"Remote Sketchbook" selection in the "Sketchbook" view was made persistent (it currently resets to the "Local Sketchbook" widget after restarting Arduino IDE). - Select File > Quit from the Arduino IDE menus.
- Start the Arduino IDE.
- Select File > New Remote Sketch from the Arduino IDE menus.
🐛 Nothing happens. - Open the "Sketchbook" view.
- Click the globe icon (🌐) to open the "Remote Sketchbook" widget.
- Select File > New Remote Sketch from the Arduino IDE menus.
🙂 The "Name of a new Remote Sketch" dialog appears.
Expected behavior
The new remote sketch process is always initiated when File > New Remote Sketch is selected from the Arduino IDE menus:
Arduino IDE version
2.0.2
Operating system
Windows
Operating system version
10
Additional context
Note that authentication is persistent, so this is not about the expected behavior of the File > New Remote Sketch menu item being disabled when the IDE is not authenticated with the user's Arduino Cloud account. When following the reproduction instructions instructions I provided above, the File > New Remote Sketch menu item is enabled after restarting the IDE.
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