p5.js version
Latest (develop branch)
What is your operating system?
Mac OS
Web browser and version
Any (Chrome / Firefox / Safari)
Actual Behavior
When renaming a file or folder in the sidebar, if the new name violates validation rules (e.g. is empty, a folder containing a dot, or a file with an invalid/missing extension), the name silently reverts to its previous state without any explanation or notification to the user.
Expected Behavior
The editor should display a toast notification explaining the validation error (e.g., "Folder name cannot contain an extension", "Please enter a name", or "Invalid file type..."), rather than silently resetting the name.
Steps to reproduce
- Open a sketch in the p5.js Web Editor.
- Double-click an existing folder in the sidebar to rename it.
- Type a name containing a dot (e.g.
assets.js) and press Enter or click away.
- Observe that the folder name silently reverts to the original name without any toast/notification.
- Alternatively, rename any file or folder to an empty name (or spaces only) and press Enter/click away, observing the same silent revert.
p5.js version
Latest (develop branch)
What is your operating system?
Mac OS
Web browser and version
Any (Chrome / Firefox / Safari)
Actual Behavior
When renaming a file or folder in the sidebar, if the new name violates validation rules (e.g. is empty, a folder containing a dot, or a file with an invalid/missing extension), the name silently reverts to its previous state without any explanation or notification to the user.
Expected Behavior
The editor should display a toast notification explaining the validation error (e.g.,
"Folder name cannot contain an extension","Please enter a name", or"Invalid file type..."), rather than silently resetting the name.Steps to reproduce
assets.js) and press Enter or click away.