Skip to content

Selecting "New Remote Sketch" from File menu has no effect if "Remote Sketchbook" widget is not open #1715

Closed
@per1234

Description

@per1234

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

  1. Open the "Sketchbook" view.
  2. Click the globe icon (🌐) to open the "Remote Sketchbook" widget.
  3. If you have not already authenticated to your Arduino Cloud account, click the SIGN IN button and sign in to your Arduino account.
  4. Switch back to the Arduino IDE window.
  5. 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).
  6. Select File > Quit from the Arduino IDE menus.
  7. Start the Arduino IDE.
  8. Select File > New Remote Sketch from the Arduino IDE menus.
    🐛 Nothing happens.
  9. Open the "Sketchbook" view.
  10. Click the globe icon (🌐) to open the "Remote Sketchbook" widget.
  11. 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:

image

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

Metadata

Metadata

Assignees

Labels

conclusion: resolvedIssue was resolvedtopic: cloudRelated to Arduino Cloud and cloud sketchestopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions