Hey Arduino you owe me

Hey Arduino, you owe me $600.00 for my days work that was lost when your software crashed on MacOS. All gone. Get in touch with me so I can let you know where to send the payment.

Drew

Sorry to hear that, but you are at the back of a long queue :slight_smile: :slight_smile:

Make backups early and often.

...R

RE: Post #13

All gone.

Your SOURCE CODE?? Wow..

@pikadroo

You owe me a new keyboard for spitting my coffee out laughing please PM me your details so I know who to bill for this.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Moved here as requested.

Still too early for April fools

Sue them for 1000 times the amount you paid for the software.

larryd:
Sue them for 1000 times the amount you paid for the software.

You're thinking waaaay too small.
Go for a billion.

Yeah, all my final source gone. Redoing it all today, very devastated and I had it perfect. Thank you all for the sympathies, it's good to know I am not alone in this. :cry:

So here is what happen. I have a project I am working on, sloppy code and wouldn't ever want the world to see it. I opened a new doc which was feb09b and started to rewrite it all, you know, writing it all properly with tests and safeguards in the code to make it stable. Nice formatting, getting rid of variables and serial prints that I didn't need anymore. Really refining it, getting it into functions and then finally putting all those functions into order.

Finished it, it was working perfectly and in 8 hours I never once realized that I had not hit Apple + S. Which is really strange for me and not to dwell too much on my age but I come from a time when you had to do this every 10 seconds on 10 different floppies because a single change in the environment could cause a chip to glitch in the computer which would mean disaster. Had to program with oven mittens in those days.

Anyhow, I think the point here is. Arduino, listen up I am talking to you. Keep my $600.00 and put that money to fixing this problem. The problem being that, while I can appreciate that there isn't an auto save over my last saved version, there should be a plain text file being saved in the Arduino directory that is current. This is common practice with editors these days that they can recover a document after a crash. In fact, and quite ironically, as I type this I notice the web site is saving a draft as I go. So, let's get on that eh? :wink:

Drew

pikadroo:
there isn't an auto save

Arduino Pro IDE does have an auto-save option.

Arduino IDE also has a "Save when verifying or uploading" preference.

Both of these are enabled by default.

Although it's not something I recommend for beginners, for a more advanced user such as yourself, I very strongly recommend doing version control using Git. Not only would this allow you to recover lost data up to the most recent commit, the incremental atomic development that comes with proper commit discipline is extremely valuable when making significant changes to a project, as you were doing. Without it, if you find that the code doesn't work at the end of a major rewrite, it can be extremely difficult to determine which of the changes were responsible.

User writes a novel but never saves it.
User closes document but didn't save it.
User mentions extensive user experience of floppies.
User wants compensations for not doing the obvious.

ballscrewbob:
User writes a novel but never saves it.
User closes document but didn't save it.
User mentions extensive user experience of floppies.
User wants compensations for not doing the obvious.

Yeah, ok. Whatever.
Drew

pert:
Arduino Pro IDE does have an auto-save option.

Arduino IDE also has a "Save when verifying or uploading" preference.

Both of these are enabled by default.

Although it's not something I recommend for beginners, for a more advanced user such as yourself, I very strongly recommend doing version control using Git. Not only would this allow you to recover lost data up to the most recent commit, the incremental atomic development that comes with proper commit discipline is extremely valuable when making significant changes to a project, as you were doing. Without it, if you find that the code doesn't work at the end of a major rewrite, it can be extremely difficult to determine which of the changes were responsible.

Yeah, I know that option is there. It's unchecked in my install and I am not sure how that came to be, it's always been enabled on my laptop. Not sure it would have helped because I wasn't actively uploading to a board while working on it. Didn't upload till then end a few times to fix mistakes. I dunno... I dunno why I don't use my git... I should. Know any good tutorials on a work flow for that? I've got to get on that... part of the problem is I kind of come and go with developing here. I am a little gun shy now, not sure an alpha release is in the stars for me. LOL

Drew

I don't use the Arduino IDE or GIT. I like to use the Geany for all my programming and I have never managed to get my head around GIT although I realise that many users adore it.

AFAIK Git is only useful if you remember to COMMIT at the appropriate time - which isn't a whole lot different from remembering to SAVE.

If it's any consolation a somewhat similar unhappy lesson is recounted here.

...R

Robin2:
I don't use the Arduino IDE or GIT. I like to use the Geany for all my programming and I have never managed to get my head around GIT although I realise that many users adore it.

Yes! I agree 100% with that about git. As long as it's just me using a repository, I am fine but hope I don't mess it up, constantly. Add someone else to the repository and I am lost, big problem when you work in programming too. I just can't get my mind around it and keep hoping for that moment of perfect clarity that brings it all into focus. Back years ago, friends were using it and saying it was so great and I just didn't get it. Couldn't learn to roller skate or ice skate either, perhaps they are connected somehow. :confused: Drew

Drew

I can't get my head around git either, but even so, its really really useful. I just use one huge junk-pile of a repository for most of my stuff. Now and then I'll finish something and give it its own repository. I NEVER fork and NEVER pull in forked code. Don't have anyone else mucking about in it. Very handy for packing off the code to different computers. Home, office, laptop etc.

-jim lee

Robin2:
I like to use the Geany for all my programming and I have never managed to get my head around GIT although I realise that many users adore it.

I downloaded Geany and wow! I've been using sublime or vi/nano in shell for a long time. I can't seem to
get it to work with Arduino though. It appears to require Arduino 1.8.5? Is that right?

I tried to install the plugin here: Jonas / geany_plugin_arduino_ide · GitLab

but all I get on upload is this:

~/arduino-1.8.5/arduino --upload "/Users/drew/Documents/Arduino/Blink/Blink.ino" --preferences-file  "/Users/drew/Documents/Arduino/Blink/.geany.Blink.ino.preferences.txt" --save-prefs; #gtkterm --port $GEANY_ARDUINO_PORT -c Arduino (in directory: /tmp)
/Users/drew/.bash_profile: line 1: /Users/drew/.profile: No such file or directory
/bin/bash: /Users/drew/arduino-1.8.5/arduino: No such file or directory
Compilation failed.

Not sure what it needs to work.

Drew

I did not know there was a Geany plugin for Arduino.

...R

Robin2:
I did not know there was a Geany plugin for Arduino.

...R

Yeah, maybe it's old. I can't seem to find any how to info on it... so... meh. Thought maybe you knew. Not a deal breaker at all though, I like how it gives ya that function jump menu... and for free!
Drew

I have written a simple Python program to compile and upload Arduino code using the command-line IDE. I have a menu option in Geany to call the Python program. The Python program can also be used without Geany.

At the top of my .INO file I put the following comments that are used by the Python program

// python-build-start
// action, verify
// board, arduino:avr:uno
// port, /dev/ttyACM0
// ide, 1.8.6
// python-build-end

...R