2024 PathPlanner Not Saving Paths

Okay, so our team finally has pathplanner setup, along with a sendable chooser for selecting them. But we are running into a little problem.

One of the two directories that pathplanner is suppose to be saving files to is not working.

The deploy/pathplanner/autos directory is saving the .auto files

The deploy/pathplanner/paths directory stays empty to matter what I do in PathPlanner.

Also any path I make in PathPlanner disappears when i restart PathPlanner.

Everytime I deploy to our robot it crashes because it’s trying to read a file out of the deploy/pathplanner/paths directory and nothing is in there. So it’s giving me this error.

“Unhandled exception: java.lang.RuntimeException: java.io.FileNotFoundException: /home/lvuser/deploy/pathplanner/paths/PathTestOne.path (No such file or directory)”

Any help would be greatly appriciated.

Our Code: GitHub - NateBess/2024-Java-Swerve-v1.2

Are you sure you’re using the newest version of the pathplanner app? Is the auto you’re trying to load named the same as it is in the app?

there is a thing at the bottom of PathPlanner that says…

PathPlanner Update Available.

You have any idea how to actually update it though. Looked for a spot in the software, tried to chekc for updates in WPI through VScode, and even tried uninstalling and installing it again through the Microsoft Store.

Also I can re-name the auto to anything, and I can go look in the repository and the name was also updated. But that’s just for the “autos” directory.

You can download the newest build from the pathplanner github and install that. If your version of pathplanner doesn’t have an area in the ui to create paths then you need to update

The version on the running program on our laptop is PathPlanner v2024.1.4

Weird, looking at your GitHub it seems your path files aren’t properly getting saved in the deploy directory

This is what our PathPlanner looks like.

We can make paths, but then when pathplanner is restarted, they all disappear.

That’s certainly weird but follows given those path files aren’t saved in your git repo so it looks like they aren’t saving

Edit: also the banner appears to be related to the vendor dep, open vscode and open the command palette, type manage vendor dependencies, check for updates online, and install the updated vendor dependency

I have had the same issue when programming PathPlanner this season, and I haven’t found a fix for it but noticed that it seems like some paths get “corrupted” and the only way to fix it is to delete the path. Maybe that’s whats happening here? I would try completely deleting PathPlanner from that project and initializing it again.

Updated 3 libraries. But PathPlanner seems to still be doing the same thing. But the update tag on the bottom has now gone away.

So delete the pathplanner directories, and the PathPlanner Dependency… anywhere else I need to get rid of?

tried to get rid of everything pathplanner, and install everything fresh for it. Seems to be doing the same thing.

You have to actually edit a path. Just making a new path won’t save anything unless you make an edit.

I see. That did actually make a difference this time. Thank you very much!

Gotta love an easy fix. :slight_smile:

Is there a reason that this is the case? I think it’d be helpful to have a path be saved upon creation so people could have placeholders. At the very least, could a path be saved when its name is changed?

It’s done specifically to avoid a bunch of placeholders being forgotten and cluttering up the project. I feel like renaming them should save the file so if it doesn’t do that then that can be fixed.

1 Like