P5.js-web-editor: Long Files added to sketches appear empty

Created on 4 Jun 2018  路  5Comments  路  Source: processing/p5.js-web-editor

Nature of issue?

  • [x] Found a bug
  • [ ] Existing feature enhancement
  • [ ] New feature request

Details about the bug:

When I upload a JSON file that's sufficiently long (I'm not sure what the limit is), the file will appear empty when I navigate to it via the sidebar. I can even go into the file and start writing more json and it doesn't interfere with the original invisible json. I'm not sure if it's limited to JSON or not. I think one of my students tried this with a CSV file and saw something similar but I haven't tested again to confirm.

This only happens if I upload the whole file. If I create an empty json file, and paste in my text there's no issue.

Sketch to demonstrate the bug below.

high bug

Most helpful comment

thanks for reporting this! this is basically a UI/UX bug. what's happening here is that the files are so big that they are being uploaded to S3, but the UX doesn't reflect that鈥攊t just appears that the files are empty. this is handled in the new design, but it would be nice to put something sooner so that it doesn't seem like a bug 馃槃

All 5 comments

thanks for reporting this! this is basically a UI/UX bug. what's happening here is that the files are so big that they are being uploaded to S3, but the UX doesn't reflect that鈥攊t just appears that the files are empty. this is handled in the new design, but it would be nice to put something sooner so that it doesn't seem like a bug 馃槃

I also see this. My workaround was to host the file elsewhere and refer to the remote location. For workshops the "empty" file felt too confusing.

yeah this is super confusing! i added this issue to the current milestone so it should be fixed relatively soon.

Will take a look on this

just pushed a fix for this in #1102.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AltoRetrato picture AltoRetrato  路  4Comments

slowizzm picture slowizzm  路  4Comments

catarak picture catarak  路  5Comments

aparrish picture aparrish  路  5Comments

runemadsen picture runemadsen  路  5Comments