Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Robot Builder C++ bug (http://www.chiefdelphi.com/forums/showthread.php?t=111677)

kenfox 20-01-2013 12:19

Robot Builder C++ bug
 
When re-generating C++ code, newly added subsystems and components are not added to Robot.cpp. The bug is caused by a typo in "export/cpp/files.yaml":

Code:

--- resources/export/cpp/files.yaml        (revision 619)
+++ resources/export/cpp/files.yaml        (working copy)
@@ -27,7 +27,7 @@
  modifications:
    autonomous: ${exporter-path}CommandBasedRobot-autonomous.cpp
    constructors: ${exporter-path}CommandBasedRobot-constructors.cpp
-    initializanion: ${exporter-path}CommandBasedRobot-initialization.cpp
+    initialization: ${exporter-path}CommandBasedRobot-initialization.cpp

You can work around the problem by manually editing the initialization section of your Robot.cpp and changing "ID=INITIALIZATION" to "ID=INITIALIZANION". Or if you haven't made any changes to Robot.cpp, you can delete it and let Robot Builder generate it from scratch. The bug only happens when updating it.

The tracker at FIRST Forge doesn't seem open for bug reports, so I hope the right people see it here.

Joe Ross 20-01-2013 12:31

I've been reporting robot builder bugs to the wpilib project, since I couldn't report them in the robot builder project.

kenfox 20-01-2013 20:02

Re: Robot Builder C++ bug
 
Quote:

Originally Posted by Joe Ross (Post 1219073)
I've been reporting robot builder bugs to the wpilib project, since I couldn't report them in the robot builder project.

The WPILib project on FIRST Forge seems dead. I can't see any recent commits in the SVN repo. The Robot Builder project seems active, but it doesn't have an open bug tracker.

Joe Ross 20-01-2013 21:36

Re: Robot Builder C++ bug
 
Quote:

Originally Posted by kenfox (Post 1219213)
The WPILib project on FIRST Forge seems dead. I can't see any recent commits in the SVN repo. The Robot Builder project seems active, but it doesn't have an open bug tracker.

While the SVN hasn't been updated for several years, the WPILib project is still active. That is where the file updates are posted. The tracker is also active.l For example, in the Java tracker, there were 5 bugs closed in the last month.

kenfox 21-01-2013 08:59

Re: Robot Builder C++ bug
 
Quote:

Originally Posted by Joe Ross (Post 1219261)
While the SVN hasn't been updated for several years, the WPILib project is still active.

Thanks, I see that WPILib has categories for all the languages and utilities. I'm now the proud creator of Artifact artf1597.

alexhenning 21-01-2013 19:58

Re: Robot Builder C++ bug
 
Thanks for the patch! I've included it in RobotBuilder. You can download it from firstforge, it's r620. The fix will show up in the next update.

Additionally, I've added a tracker for RobotBuilder into the WPILib project and added a link on the home page of the RobotBuilder project. Hopefully, this is much clearer for people trying to report bugs.


All times are GMT -5. The time now is 02:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi