View Single Post
  #6   Spotlight this post!  
Unread 08-01-2017, 23:53
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 258
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: RobotBuilder Deleting Code

Quote:
Originally Posted by tomy View Post
There are two pictures. One is before the auto gen and one is after the auto gen. The before pic has the code I added.
Did you save your Eclipse project before robotbuilder generates the code? Try Ctrl-Shft-S in eclipse before going to robotbuilder. Or Ctrl-Shft-W and close all tabs and saving them if prompted before RobotBuilder.

That Step got me every time in the beginning. I now teach the new programmers this lesson but I warn them they will forget and learn the hard way. Its like saving before downloading or stepping away from the PC. The time your forget to the computer will freeze up.

I suspect RobotBuilder opens the file(currently saved on the disk) writes the changes then closes it. Eclipse now see the change and refreshes with the data on the disk that never had your edits.

Last edited by cpapplefamily : 09-01-2017 at 00:03.
Reply With Quote