Hello.Recently , i was done a complex project with arduino . it was nearly 6000 lines . last time , i just replaced all Serial.print with //Serial.print to comment out all serial commands , and then ... Death !Some functions are disappeared ! some are half disappeared ! and my code and my project is DEATH .unfortunately , i dont have any backup of my project , ... . Did anyone before me do a replace on a 6000 line code ?!Arduino IDE Programmers ! What you are doing there ?!So , ... , Is Arduino IDE just a TOY ?!!! WTF is happening here ?!
Some functions are disappeared ! some are half disappeared ! and my code and my project is DEATH .
Re: multiple files - I thought there was some issue with the 1.6.6+ IDE and multiple files?
+1 for using git or other version control program. It's a bit of work to learn but definitely worthwhile if you're writing a 6000 line program.
Sorry to hear that. Just commenting some lines will not cause these kind of issues. Try opening the ino file in a notepad an check again.Always use Source control.
Sorry you lost work.I use SyncBack for automatic backups daily X2.One goes to my internal hard drive D and one to a table top network drive.Once a week I run the program with an USB drive. Then swapping this USB drive with a similar one that sits in a off site safety deposit box.You learn.http://www.2brightsparks.com/syncback/sbpro.htmlThey have a free version:http://www.2brightsparks.com/freeware/index.html.
I don't use the IDE much - doesn't it have a ctrl-Z / undo?Or is the undo depth limited?
Sorry for your work lose..I have a project that have more than 7000 lines of code, and I never have this kind of problem!By the way, my entire project don't have all 7000 lines in one single ino file, I use about 32 separated files each one with your own functions!Is your project had all the 6000 lines in one single file ?
I'd wager that you fatfingered the find line? Assuming ctrl+Z isn't able to save you, you're probably SOL. I put everything I care about into a github repo, so as long as I remember to commit changes regularly, I don't have to worry about losing data, and can go back to an old version easily. Re: multiple files - I thought there was some issue with the 1.6.6+ IDE and multiple files?
I use git and github. Using some sort of code repository system is just basic infrastructure for any working programmer. You need to learn to use git - you'll come to love it. It'd be nice if it were integrated into the IDE, but that's quite a bit of work.
Were you using code folding: https://github.com/arduino/Arduino/issues/4845?I use multiple files(tabs) on every project and can't think of any offhand.+1 for using git or other version control program. It's a bit of work to learn but definitely worthwhile if you're writing a 6000 line program. I have found it actually makes me a better programmer to have to break my work into logical commits.
yes , i use code folding . and every functions that is corrupted was folded