I was trying to program with pathplanner as I have before, and I ran into this error,
ERROR 1 Unhandled exception: org.json.simple.parser.ParseException: Unexpected token END OF FILE at position 0. org.json.simple.parser.JSONParser.parse(JSONParser.java:215)
Error at org.json.simple.parser.JSONParser.parse(JSONParser.java:215): Unhandled exception: org.json.simple.parser.ParseException: Unexpected token END OF FILE at position 0.
at org.json.simple.parser.JSONParser.parse(JSONParser.java:215)
Warning 1 The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See https://wpilib.org/stacktrace for more information. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:379)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:59)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:53)
at com.pathplanner.lib.auto.AutoBuilder.buildAuto(AutoBuilder.java:756)
at com.pathplanner.lib.commands.PathPlannerAuto.<init>(PathPlannerAuto.java:39)
at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:682)
at frc.robot.RobotContainer.<init>(RobotContainer.java:66)
at frc.robot.Robot.robotInit(Robot.java:28)
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:453)
at frc.robot.Main.main(Main.java:17)
I then went into debug mode and found where the autos were being called (its a directory path from a previous version of code) and they were autos that I had before and then deleted. Then my mentor suggested that we look for any files matching that name on the computer and there were none.
Here is the reposotory GitHub - Gemini4575/2025-preseason-pratice: Preseason pratice
Here is my question: Pathplanner is getting the paths from System.getProperty(“user.dir”) how is that getting set to the old one?