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

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

Closed
3 tasks done
per1234 opened this issue Nov 27, 2022 · 0 comments · Fixed by #1717
Closed
3 tasks done
Assignees
Labels
conclusion: resolved Issue was resolved topic: cloud Related to Arduino Cloud and cloud sketches topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Nov 27, 2022

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
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Nov 27, 2022
@kittaakos kittaakos self-assigned this Nov 28, 2022
kittaakos pushed a commit that referenced this issue Nov 28, 2022
Closes #1715

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Nov 28, 2022
Closes #1715

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Nov 29, 2022
Closes #1715

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@per1234 per1234 added the conclusion: resolved Issue was resolved label Nov 29, 2022
@per1234 per1234 added the topic: cloud Related to Arduino Cloud and cloud sketches label Mar 6, 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: cloud Related to Arduino Cloud and cloud sketches 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.

2 participants