processing / processing/p5.js-web-editor

Deleting an asset leaves a broken file reference in sketch files

Open
#4,160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
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
  1. Open a sketch and upload an image.
  2. Confirm the file appears in both the sketch files sidebar and the Assets tab.
  3. Go to the Assets tab and delete that asset.
  4. Open the sketch again and check the sketch files sidebar.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.