In my Main.java file, I get errors in the main method.
I don’t have access to my robot, but building the program was completely fine.
Not sure if these errors will be problematic.
The error for string args says this:
Syntax error, varargs are only available if source level is 1.5 or greater
The error for the .startRobot() says this: The method startRobot(java.util.function.Supplier) in the type RobotBase is not applicable for the arguments (java.util.function.Supplier)
The error for Robot::new says this:
Constructor references are allowed only at source level 1.8 or above
It sounds like you’re using an older javac (java compiler). Did you make remove/install a compiler or related jdk modules? Perhaps your PATH is pointing to an older version of the compiler before the current one. Not for FRC, but I have seen things like this when installing upgrades and forgetting to restart the development environment.
I think this was the issue. Its now fixed but I have no idea what I did to fix it.
It could be as simple as restarting the development environment, or it noticing things had changed and finally catching up.
You can try just cleaning the java workspace instead of a full restart to see if intellisense will get rid of the errors.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.