I’m REALLY hoping there is some way I can’t see to roll back to a previous version of code within the web IDE tool.
After making some tweaks, I re-logged back onto the web IDE. The tool mysteriously has rolled back to a very early version of my code. I appear to have lost quite a bit of work. Please tell me there is some way to roll back to a certain date (or similar version control). If not, I have to manually copy the files onto my local system in order to guarantee I have any particular version?
Why would any ever use the web IDE if things like this could occur? I am assuming nothing is able to be rolled-back.
@Dave may be able to help you with that - he did for me a while back (thanks again )
If you can give him a time frame when you last saved your good code, he might be able to pull that snapshot from the archives.
That sometimes happens when you switch machines or browser. The old code might be pulled from your browser cache and if you then save that state back, your remote version will be overwritten.
So if you notice that you’re seeing old code don’t try to save or build. Just select some other project of yours, go to the settings drawer of Build and press CLEAR CACHE. After that you should be able to go back to your project and see the current state.
Can you email me ( david at particle.io ) from your email account that you used to login to Particle, and send me the name of your project and if possible the url you see when you have the project open? It would also help to know the last date you saved the project and it was good, and potentially a keyword or two from when it was complete.
I cannot wait for some form of version control on the web IDE. A few weeks ago I also lost about an hours worth of coding after switching between my desktop and laptop.
Right now I am selecting code and saving it locally onto my computer (using Evernote) as a crude form of version control - definitely not ideal but gives me peace of mind.
@peter_howells, have you considered using Particle CLI to compile your local code? It uses the same build farm and add functionality that Build does not have.
@peekay123 I have considered and tried it. It did not suit me as I use 2 different computers, depending on where I am, for my development, and having the IDE cloud based is so much easier in this regard.
Version control on the Web IDE is a definite “holy grail” but if you setup both your machines with git, use a 3rd party Git remote (like GitHub, BitBucket, GitLab, etc) you can sync all code changes between your machines AND use REAL version control. You also get to use git which lets you do cool thinks like branching so you can conduct little experiments without impacting you “mainline”, merging those branches back into the mainline, cherry-picking between experiments, and code commits that describe what you changed.
@harrisonhjones Thanks for the info. I will definitely look into it. I am right in assuming that using GitHub will allow me to use the offline IDE for compiling my code?
Ouch. Just setup up GitHub and tried to create a repo - all repos are public in the free version - not good (unless you are creating open-source projects).
I agree with harrisonhjones, Git is the way to go here. I use Git with a local repo (free) for all my source control. Just copy and paste when you are done for the day. The Git bash shell does take some getting use to, but you can handle it.
NEVER rely on cloud or remote servers to save your code!! Save early, save often.