mjansen4857 / pathplanner

A simple yet powerful path planning tool for FRC robots
https://pathplanner.dev
MIT License
393 stars 116 forks source link

Stop converting path build errors into runtime exceptions #684

Open adamsong opened 4 months ago

adamsong commented 4 months ago

Is your feature request related to a problem? Please describe. Currently if a team tries to build a path where the file doesn't exist, their entire code crashes, which if the paths are loaded during auto will cause a crash on match start (and a potential hang on WPILib 2024.3.1) and if done during init as recommended by the docs, a crash loop that if on the field will cause a bypass.

Describe the solution you'd like Throw the FileNotFound exception as is, requiring teams to make a conscious decision regarding error handling, doing as it is currently poses, what appears to me to be, an unnecessary risk to teams. If this was done for a reason, please let me know because I can't think of one.