DurhamAcademy / FRC2024

https://6502.team
GNU General Public License v3.0
4 stars 1 forks source link

Fix the simulation UI #1

Closed a1cd closed 9 months ago

a1cd commented 9 months ago

Simulation UI is not appearing, cannot understand why

a1cd commented 9 months ago

Its a problem on WPILib's side according to @trevnels. I have submitted an issue to the allwpilib repo.

trevnels commented 9 months ago

This is not a WPILib issue. The problem is that a ./gradlew simulateJava does not provide the environment variables to open the GUI, while the official VSCode extension does (and it does indeed work through VSCode.) The command by itself just starts the sim - it needs to be told that you want the UI as well.

The Glass.app issue is unrelated to this - this is something WPILib could fix, but is unrelated to the sim GUI.

trevnels commented 9 months ago

According to Thad's response on your issue, adding .defaultEnabled = true to the end of wpi.sim.addGui() in build.gradle should fix it.