Skip to content

No user feedback when pulling a deleted remote sketch #1840

Open
@kittaakos

Description

@kittaakos

Describe the problem

From here:

No user feedback when pulling a deleted sketch.

To reproduce

  1. pull deleted sketch:

    • Create cloud sketch,
    • Open IDE2. The new sketch is visible,
    • Delete the cloud sketch from the browser,
    • Pull cloud sketch in IDE2.
Uncaught (in promise) Error: Not found: /yyy444.
    at CreateApi.stat (create-api.ts:236)
    at async CreateFsProvider.stat (create-fs-provider.ts:92)
    at async FileService.doResolveFile (file-service.ts:499)
    at async FileService.resolve (file-service.ts:477)
    at async CloudSketchbookTree.resolveFileStat (cloud-sketchbook-tree.ts:427)
    at async CloudSketchbookTree.resolveChildren (file-tree.ts:38)
    at async FileNavigatorFilter.filter (navigator-filter.ts:51)
    at async CloudSketchbookTree.resolveChildren (sketchbook-tree.ts:25)
    at async CloudSketchbookTree.resolveChildren (cloud-sketchbook-tree.ts:382)
    at async CloudSketchbookTree.refresh (tree.ts:306)

Expected behavior

IDE2 refreshes the sketchbook tree and warns the user that the sketch has been deleted

Arduino IDE version

2.0.3

Operating system

macOS

Operating system version

12.5.1

Additional context

No response

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

No one assigned

    Labels

    topic: 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