Closed KenwoodFox closed 1 year ago
It errors right here: https://github.com/FRC-1721/1721-ChargedUp/blob/1d3d55eb7db793f9fbe09c81884c8dbdefc3776e/rio/robotcontainer.py#L114
but it will error on any instance of .onTrue
, .whileHeld
that it finds first.
I looked at this a bit tonight. There's definitely a bug on the RobotPy side, but it doesn't seem to be explicitly about the buttons. There's something more complex going wrong here, it actually seems to be related to the addRequirements method of various commands. I'll have to dig into it tomorrow evening.
Oh, I figured it out.
The problem is actually in CurvyAuto. You called addRequirements
before calling super().__init__(...)
, which is not ever allowed. Unfortunately, there's not a ton we can do to stop you from encountering this error, but I'll think about it.
Yep! This is it thank you! Also replied on gitter as well. Makes perfect sense now, a way for the error to be a little more descript would be nice but i know its tough.
Fixed in https://github.com/FRC-1721/1721-ChargedUp/commit/45053d49c94d1a6009a80e754a5b313daba06bd5
This is really similar to the issue we had last time where the error is our fault but the traceback is too nondescript to figure out what it is.
I did a git bisect and obvio its between 30ff3ef2bb26232b802406fa24b342e137fc86d5 and 1d3d55eb7db793f9fbe09c81884c8dbdefc3776e