processing / processing/p5.js-web-editor
Deleting an asset leaves a broken file reference in sketch files
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 1.7k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 8
Description
p5.js version
No response
What is your operating system?
Windows
Web browser and version
No response
Actual Behavior
When I delete an image or other asset from the Assets tab, it disappears from my assets list, but the filename still shows up in the sketch files sidebar. The file itself is gone, so the preview is broken.
Deleting the same file from the sketch files sidebar works correctly. The problem only happens when deleting from Assets.
Expected Behavior
Deleting an asset from the Assets tab should remove it from storage and from every sketch that references it, same as deleting it from sketch files.
Steps to reproduce
- Open a sketch and upload an image.
- Confirm the file appears in both the sketch files sidebar and the Assets tab.
- Go to the Assets tab and delete that asset.
- Open the sketch again and check the sketch files sidebar.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the deletion entry point for the Assets tab and compare it with the working deletion flow in the sketch files sidebar. Trace how the asset is removed from storage and references are updated; done means deleting an asset removes it from the assets list and every sketch's file sidebar without leaving a broken preview.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100