Code changed? What happened! Help !?!

Hi there,

Not too sure what happened here, but my code changed to a bunch of jumble without me doing anything

I was busy working through my app, just creating some text and positioning it, when I came across this error : Argument list too long

Not knowing what that meant as I had not really changed anything, I thought id look it up, and once that did not work I thought id restart my macbook as I thought perhaps it was something to do with the hard Drive. Once restarted I opened my code to find the last 4000 lines of code had been replaced with this kind of stuff…

’-»P∫Üí°2mv§Œ5¯ºıåıx[nå<W!çõ6·(_òñ#ã$Æ/œ

êÆJ¶L.pU>ŒÓtÓ£·€†ÎOtÍ%uï ∂òiih¶¥{Ö]ÑîÜ!„≤l\Ñi·°· Ê‹h–%’äå†WU}<Ww°Ö!WóÄq‘Ö†9”f∆a¡ å´

åöVÅ)C9GãôF F /ä√π‘es–§=C@x˘ãÄT8Øóoç>Ω&@KÔ≈kÈI"∏^ΩE¶_‚S‰ÙC◊%xZgYÂc ÑB-˙Àë~Tÿk—uÊÈ∆î„*ß≤öR<ºl†´û·äî

¿…»ÏÒä9 6G¶©U͘æôu~tª=hsE¿QT!Ê√˚”eq≈}Á[Gn∆L+¢˙…µ

Does anyone know what might have happened, or what I may have done unwillingly for this to happen?

I last backed up my work a couple of weeks ago and have done a lot since, so would hate for this to be some irreversible mistake :frowning:

Thanks

Daine

Just thinking…

I did build this for IOS about an hour ago so that I could test something on my phone. I still have the app file… Is there any way to extract the code from there so that I can recover what has gone missing?

If this is possible it will save me a lot of recoding :smiley:

If not then FML :stuck_out_tongue:

Which editor are you using? Sounds like something went wrong and your file is corrupt. Does your editor have an auto-backup feature? You might find that it quietly stashes some backups here & there. 

I’m afraid Corona build servers do not keep copies of the source. Once the build is complete all resources relating to your project get ditched. At least this was what we were told on a number of similar occasions in the past. 

Sorry about this. Best of luck with your recovery. 

I use Text Wrangler.

Dam thought I could get it that way somehow. Does the build convert the code to commands or something? Surely the code is used somewhere in the final result

Text Wrangler can keep historical backups, just didn’t notice that till I looked at it now :frowning: so I had that turned off. Lesson learnt

Sorry about your loss! If you keep your project on Dropbox or similar you will have incremental backups off site as well. 

Cheers, i’m looking into automatic backup solutions now so will give that a look as well 

Bitbucket + Mercurial + Source Tree = the answer to your prayer’s. There all free too. You won’t ever have this problem again, if you use the above 3 tools religiously. The latter (Source Tree) covers the former once set up. So you only end up using one tool really :slight_smile:

:slight_smile:

Version control is definitely the “correct” way of doing it. If you splurge on Glider you can have Mercurial or Git built into your editor. Its very nice to instantly see in what files and where inside them you are currently working. Then finish a task and push to Bitbucket all within Glider :slight_smile:

Thanks everyone for the tips. I have had a play around now, so the only way I might lose my work again is if a giant EMP hits my area :slight_smile:

Just thinking…

I did build this for IOS about an hour ago so that I could test something on my phone. I still have the app file… Is there any way to extract the code from there so that I can recover what has gone missing?

If this is possible it will save me a lot of recoding :smiley:

If not then FML :stuck_out_tongue:

Which editor are you using? Sounds like something went wrong and your file is corrupt. Does your editor have an auto-backup feature? You might find that it quietly stashes some backups here & there. 

I’m afraid Corona build servers do not keep copies of the source. Once the build is complete all resources relating to your project get ditched. At least this was what we were told on a number of similar occasions in the past. 

Sorry about this. Best of luck with your recovery. 

I use Text Wrangler.

Dam thought I could get it that way somehow. Does the build convert the code to commands or something? Surely the code is used somewhere in the final result

Text Wrangler can keep historical backups, just didn’t notice that till I looked at it now :frowning: so I had that turned off. Lesson learnt

Sorry about your loss! If you keep your project on Dropbox or similar you will have incremental backups off site as well. 

Cheers, i’m looking into automatic backup solutions now so will give that a look as well 

Bitbucket + Mercurial + Source Tree = the answer to your prayer’s. There all free too. You won’t ever have this problem again, if you use the above 3 tools religiously. The latter (Source Tree) covers the former once set up. So you only end up using one tool really :slight_smile:

:slight_smile:

Version control is definitely the “correct” way of doing it. If you splurge on Glider you can have Mercurial or Git built into your editor. Its very nice to instantly see in what files and where inside them you are currently working. Then finish a task and push to Bitbucket all within Glider :slight_smile:

Thanks everyone for the tips. I have had a play around now, so the only way I might lose my work again is if a giant EMP hits my area :slight_smile: