VSCode Simulate Robot Code on Desktop issue

Hello, I stumbled across this command on VSCode called “Simulate Robot Code on Desktop”. I clicked on it and it built my project. Then a minute later this popped up:

java.io.IOException: wpiHaljni could not be loaded from path or an embedded resource.
    attempted to load for platform /osx/x86-64/

    at edu.wpi.first.wpiutil.RuntimeLoader.loadLibrary(RuntimeLoader.java:79)
    at edu.wpi.first.hal.JNIWrapper.<clinit>(JNIWrapper.java:25)
    at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:207)
    at frc.robot.Main.main(Main.java:27)

Can anybody explain what the “Simulate Robot Code on Desktop” command does and how can I use it?

Are you using macOS Catalina? Catalina is broken in sim for the 2019 setup, and will be fixed for 2020.

No, I am still using Mojave

Its actually possible that Mojave is broken too with the same issue. Mac is not well tested, as very few of us developers actually own Macs.

In theory, that button starts up the robot code in simulation mode. Its getting much improved for 2020, along with adding a GUI. In addition, its actually getting tested on mac, so there is a higher chance it works in 2020.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.