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

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

Open
isaacngkh opened this issue Nov 12, 2024 · 2 comments
Labels
bug Something isn't working Pending The issue will be fixed in the next release

Comments

@isaacngkh
Copy link

isaacngkh commented Nov 12, 2024

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):

  • OS: Windows 11
  • OS Language: English, Turkish
  • Project Information:
    WPILib Information:
    Project Version: 2025.1.1-beta-1
    VS Code Version: 1.94.2
    WPILib Extension Version: 2025.1.1-beta-1
    C++ Extension Version: 1.22.9
    Java Extension Version: 1.36.2024092708
    Java Debug Extension Version: 0.58.2024090204
    Java Dependencies Extension Version 0.24.0
    Java Version: 17
    Java Location: C:\Users\Public\wpilib\2025\jdk
    Vendor Libraries:
    PathplannerLib (2025.0.0-beta-4)
    CTRE-Phoenix (v6) (25.0.0-beta-2)
    photonlib (v2025.0.0-beta-1)
    WPILib-New-Commands (1.0.0)

roboRIO (please complete the following information if applicable):

  • roboRIO 1 or 2?: N/A; simulation
  • Image version: [Use the roboRIO imaging tool or the WPILib team number setter to determine the image version]
@isaacngkh isaacngkh added the bug Something isn't working label Nov 12, 2024
@Gold856
Copy link

Gold856 commented Nov 12, 2024

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

@rzblue rzblue reopened this Nov 12, 2024
@rzblue
Copy link
Member

rzblue commented Nov 12, 2024

Reopening until the issue is fixed in a release

@rzblue rzblue added the Pending The issue will be fixed in the next release label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Pending The issue will be fixed in the next release
Projects
None yet
Development

No branches or pull requests

3 participants