Skip to content

Naming a folder 'root' causes issues #845

Open
@meiamsome

Description

@meiamsome

Nature of issue?

  • Found a bug

Details about the bug:

This is a related issue to #842, but requires a more in-depth refactoring to fix.

  • Steps to reproduce this bug:
  1. Create a folder called root. The folder is created, but shows up as blank in the sidebar due to the special behavior for a directory based on this name.

You can also cause a crash by doing the following:

  1. Create a folder named something that isn't 'root', and add a file to it.
  2. Rename the folder to 'root' and save the project.
  3. When you next load the project, it will crash the front-end. (Example sketch: https://editor.p5js.org/meiamsome/sketches/cyNfPGeDu )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions