Skip to content

Feature request: auto save before run #1405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1234igor opened this issue Apr 27, 2020 · 5 comments
Open

Feature request: auto save before run #1405

1234igor opened this issue Apr 27, 2020 · 5 comments
Labels
Bug Error or unexpected behaviors Needs Discussion Requires further conversation or consensus

Comments

@1234igor
Copy link

1234igor commented Apr 27, 2020

New feature details: Hi! One of the biggest issues I have with web editor is when I accidentally run a faulty code with for example an infinite loop and it a) freezes the whole browser tab so the only thing I could find I can do is to reopen my sketch in a new tab and b) as I didn't save my sketch before faulty code launch, I lose a lot of progress and have to rewrite my code. I think it could be better if there was an option to auto save sketch before each launch in settings.

@welcome
Copy link

welcome bot commented Apr 27, 2020

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.

@catarak
Copy link
Member

catarak commented May 6, 2020

Thanks for the suggestion! Some similar issues have been opened recently ( #1390, #1393 ), and I think it indicates that how/when the web editor is saving could use some rethinking.

My goals are just (1) making sure folks don't lose their work, and (2) not littering the web editor database with saved versions of the default sketch.

@catarak catarak added Needs Discussion Requires further conversation or consensus type:bug labels May 6, 2020
@parteekcoder
Copy link
Contributor

@raclim One solution i think would be trivial that we can store the work in localStorage when the user runs or type anything

And later on we ca retrive that work from the localStorage

@ymittal
Copy link

ymittal commented Jun 23, 2023

Any progress on this? Have lost valuable work in the last few weeks multiple times :'(

@raclim
Copy link
Collaborator

raclim commented Jun 28, 2023

I'm sorry that that's happening, that's really frustrating 😭

As mentioned above, there's probably some further thinking that has to be done about how saving works in general. There isn't any known progress yet, but definitely open to suggestions (like the one above) on workarounds or how it could be implemented differently!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behaviors Needs Discussion Requires further conversation or consensus
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants