You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web browser and version: Chrome, 87.0.4280.88 (Official Build) (64-bit) (cohort: Stable)
Operating System: Windows 10
Here's what I did, but I don't know if it is all required:
Go to one of your scripts
Make some changes - I coded for a good hour or two
Save profusely while editing
When finished making changes and you are satisfied, it shows as saved and you should be good to close out of the tab -- I did not. Just switch to another tab for a while
After "a while" has passed, perhaps a couple of hours: Sometimes when you come back to your script it will, for some reason, display an older version of the script. In my case, it went back to the version I started with when I started editing that session. This has happened before, and normally you can fix it by refreshing the page without making any changes. Making changes and saving, however, will overwrite the entire script with the old version of it. Unfortunately, I had no clue it was reverted in this case, and I just popped in to make some notes only to find out that I now have to reprogram my entire game.
Aside from somehow fixing this issue, I think it would be nice if p5js had some kind of version history implemented, which could also help solve it. Even storing just the last 2-3 versions would be helpful.
The text was updated successfully, but these errors were encountered:
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.
Hey @Novarender, thanks for reporting and I'm super sorry that happened! That sounds really, really frustrating. I believe the solution here is implementing adding changes to sketches using CRDT's (see recommendation here), as opposed to simply replacing the entire contents of the JS/CSS/HTML/etc. file. This would also help with potentially saving multiple versions of sketches!
Found a bug.
Aside from somehow fixing this issue, I think it would be nice if p5js had some kind of version history implemented, which could also help solve it. Even storing just the last 2-3 versions would be helpful.
The text was updated successfully, but these errors were encountered: