wpilibsuite / 2025Beta

Repository for Beta Testing of 2025 Software
13 stars 5 forks source link

Commands added to NT throws "Commands that have been composed may not be added to another composition or scheduled individually" #38

Open isaacngkh opened 1 week ago

isaacngkh commented 1 week ago

Describe the bug We imported our robot code from 2024 to 2025. As part of testing individual commands of a subsystem, we added these commands to Shuffleboard.

However, when we run the command from shuffleboard or in simulation, it would throw an exception. Image

In WPILib 2024, this worked, but this no longer works in 2025 beta.

I also noticed that the names of the commands are no longer displayed in simulation/shuffleboard; just SequentialCommandGroup Image Image

Same code but in 2024 Image Image

To Reproduce Steps to reproduce the behavior:

  1. Add command to shuffleboard
  2. Trigger command in shuffleboard in simulation -> throw Unhandled exception: java.lang.IllegalArgumentException: Commands that have been composed may not be added to another composition or scheduled individually!

Expected behavior Run the command when triggered from shuffleboard

Desktop (please complete the following information if applicable):

roboRIO (please complete the following information if applicable):

Gold856 commented 1 week ago

This is the same as wpilibsuite/allwpilib#7352 and should be fixed in the next beta release.

rzblue commented 6 days ago

Reopening until the issue is fixed in a release