FtcRobotController icon indicating copy to clipboard operation
FtcRobotController copied to clipboard

Inner classes cannot be ran as OpModes

Open GraysonTinker opened this issue 5 months ago • 1 comments

For whatever reason, inner classes of any form cannot be run as an OpMode, even when public and properly annotated. If you try, it will simply fail silently within the Driver Station and put the error "Unable to start OpMode [name]" in the console. This doesn't strike me as particularly intentional behavior given the silent failure and the fact this limitation isn't documented anywhere, but if it is I think the error message should be improved to be more specific (similarly to how it would fail if, say, you annotated a class that didn't extend LinearOpMode).

GraysonTinker avatar Sep 24 '24 00:09 GraysonTinker