You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you change any of the numbers in a JSON (ex. .pathplanner/settings.json) to no longer have a fractional value, PathPlanner will crash when it tries parsing the file.
Can fix this, but do not change the default constraints manually, as the changes will not be propagated to the paths using them until the next time settings are changed.
Thanks! For our team, we noticed this issue just from having Spotless configured with JSON formatting enabled. It'd remove the trailing .0s and cause PathPlanner to crash. We ended up just adding the config JSON as an exception in our project.
Describe the bug
If you change any of the numbers in a JSON (ex.
.pathplanner/settings.json
) to no longer have a fractional value, PathPlanner will crash when it tries parsing the file.To Reproduce
.pathplanner/settings.json
defaultMaxAccel
to3
Expected behavior
The app should not crash. The JSON spec says that numbers may have a fraction part, but are not required to.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions: (please complete the following information):
Additional context
See dart-lang/sdk#46883 for the others experiencing the same issue with Dart JSON parsing
The text was updated successfully, but these errors were encountered: