Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto builder does not indicate the true source of an error thrown from WPILIB #601

Closed
bovlb opened this issue Feb 8, 2024 · 1 comment
Closed

Comments

@bovlb
Copy link

bovlb commented Feb 8, 2024

group.addCommands(commandFromJson((JSONObject) cmdJson, loadChoreoPaths));

https://www.chiefdelphi.com/t/pathplanner-parallel-command-group-error/453766?u=bovlb

I believe that this line correctly throws an exception if the commands being added to the ParallelCommandGroup have conflicting requirements. I believe it could be more helpful in identifying where the problem is.

The try block at

could usefully add the filename to the message. Perhaps something like:

throw new RuntimeException(String.format("Problem building auto %s", autoName), e);
@mjansen4857
Copy link
Owner

Fixed in 88ee403

Making release now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants