CrossTheRoadElec / Phoenix-Releases

Release repository for Phoenix-Framework and Phoenix-Tuner
79 stars 6 forks source link

WPI Simulation not working 2023 Beta #34

Closed Autumn-Ou closed 2 years ago

Autumn-Ou commented 2 years ago

Error at com.ctre.phoenix.motorcontrol.WPI_AutoFeedEnable.lambda$new$0(WPI_AutoFeedEnable.java:20): Unhandled exception: java.lang.NoSuchMethodError: 'edu.wpi.first.wpilibj.DriverStation edu.wpi.first.wpilibj.DriverStation.getInstance()' at com.ctre.phoenix.motorcontrol.WPI_AutoFeedEnable.lambda$new$0(WPI_AutoFeedEnable.java:20) at edu.wpi.first.hal.HAL.simPeriodicBefore(HAL.java:66) at edu.wpi.first.wpilibj.IterativeRobotBase.loopFunc(IterativeRobotBase.java:339) at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:130) at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:343) at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:413) at java.base/java.lang.Thread.run(Thread.java:833)

This is likely caused by "if (DriverStation.getInstance().isEnabled()) {" line 20 as DriverStation.getInstance().isEnabled() appears to have been replaced with DriverStation.isEnabled()

Note library version 5.21.4 and 2023.1.1 Beta 4 for the wpilib version of vscode which labels the wpilibnewcommands version as 1.0.0

JCaporuscio commented 2 years ago

Closing as this is already fixed and working in the 2023 Beta version of Phoenix. 5.21.4 is the 2022 version of Phoenix and not intended to work with 2023.

If you are not in the WPI Beta, please apply for access using the instructions here in order to use the 2023 beta software: https://www.firstinspires.org/robotics/frc/blog/2022-control-system-reporting-2023-updates-and-beta-testing

WPILib Beta members can access our current latest beta release here: https://github.com/wpilibsuite/BetaTest/releases/tag/ctr-phoenix-5-beta-4-pro-beta-2