Skip to content

The remote sketch cache is not invalidated #1841

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

Open
3 tasks done
kittaakos opened this issue Jan 30, 2023 · 0 comments
Open
3 tasks done

The remote sketch cache is not invalidated #1841

kittaakos opened this issue Jan 30, 2023 · 0 comments
Labels
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

@kittaakos
Copy link
Contributor

Describe the problem

From here:

Renamed cloud sketch remains in the cache folder

To reproduce

  • Create a cloud sketch,
  • Open IDE2, pull the newly created cloud sketch, and open it in a new window,
  • Rename cloud sketch in the browser,
  • Pull the sketch. Nothing happens, there is an error in the console:
uncaught (in promise) Error: Not found: /rrrr_tttt.
    at CreateApi.stat (/Users/a.kitta/dev/g…t_l-bf9e6e.js:11592)
    at async CreateFsProvider.stat (/Users/a.kitta/dev/g…t_l-bf9e6e.js:11893)
    at async FileService.doResolveFile (/Users/a.kitta/dev/g…e-service_js.js:270)
    at async FileService.resolve (/Users/a.kitta/dev/g…e-service_js.js:254)
    at async CloudSketchbookTree.resolveFileStat (/Users/a.kitta/dev/g…t_l-bf9e6e.js:22416)
    at async CloudSketchbookTree.resolveChildren (/Users/a.kitta/dev/g…og_index_js.js:1924)
    at async FileNavigatorFilter.filter (/Users/a.kitta/dev/g…or-widget_js.js:988)
    at async CloudSketchbookTree.resolveChildren (/Users/a.kitta/dev/g…t_l-bf9e6e.js:24272)
    at async CloudSketchbookTree.resolveChildren (/Users/a.kitta/dev/g…t_l-bf9e6e.js:22382)
    at async CloudSketchbookTree.refresh (bundle.js:53231)
  • Sync the cloud sketchbook view. A sketch is pulled (the new cloud sketch with its new name), but the currently opened sketch is not visible in the sketchbook tree. After the pull, the current cloud sketch is dangling. The sketch with its old name remains in the cache folder under directories.data/CloudSketchbook/ArduinoCloud
  • The IDE2 is fully functional (verify, upload are OK)
  • Quit + start IDE2, the dangling sketch opens, IDE2 is working, but the sketch is not visible in the sketchbook view.

Expected behavior

The sketch cache is invalidated. If not possible, do not cache it.

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
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jan 30, 2023
@kittaakos kittaakos added the topic: cloud Related to Arduino Cloud and cloud sketches label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

No branches or pull requests

1 participant