Modified Projects are Deleted after the App Restarts Itself


#1

@Ana @awesomeonion

The following causes code to be lost, so I’m hoping you might be able to improve this behavior so your code remains after turning Hopscotch back on.

  • Open a published project
  • Start modifying the code (I do this very frequently in an attempt to reuse code since Hopscotch code is completely sandboxed)
  • Get distracted/interrupted (this also happens frequently)
  • Wait for some period more than a few minutes & after the device turns off (sleeps)
  • Go back to Hopscotch
  • The app will restart
  • Your code will be lost

Just to note: This only occurs if you haven’t formally exited the modified project (where it’s asks if you want to remix, save to profile, or exit).

So the obvious work around is to exit a modified project and save as a draft. Then, even if Hopscotch restarts while you’re working on the project, the progress won’t be lost. But the point here is in getting interrupted before remembering to do so. I’ve lost at least 3 projects recently due to this, and it would be really awesome if Hopscotch would temporarily save modified projects when the app restarts itself, and then return to that project after it restarts.


#2

This has happened to me, and half of my code will be lost. I’m glad to here that it isn’t just me who is having this problem. I hope that it gets fixed soon!


#3

This has happened to me too, multiple times.
I agree with your suggestion, and it’d be pretty cool to see it added to hs.
Let’s wait and see what Ana thinks ig


#4

Yeah >_< this is a problem that needs to be fixed.


#5

Nice topic!

I lost a project in a similar fashion due to my stupidity when I pressed exit, and I understand your point on working on published projects. This may be more of a RAM management issue with your device, but THT can also work on opimization, although it won’t be nearly as effective as if Apple decided to optimize it. Your device will often do this to save battery


That would be cool and would work well to avoid this issue!


#6

That is weird. Great catch @ThinBuffalo! If the app crashed, can you access the crash files via iTunes to see what has gone wrong?


#7

Did you save this to your drafts?
Edit: never mind, read the rest.
So wait it temporarily saved these before…?


#8

No, just a cool idea to make this more sandbox-like

And @William04GamerA it is not a crash, it is just a RAM management issue on Apple’s side. Hopscotch can add temp save files, but the app relaunch is out of Hopscotch’s control


#9

Oh, okay. Than you for the clarification.