WPILib simulation without VS Code

Hello CD,
I’m curious to know if it’s possible to run the WPILib simulation tool without needing to fire up VS Code. Normally, this isn’t an issue, but for some particular reason, VS Code takes a solid 7-10 minutes to open up the java project. I don’t believe this is the LSP, because I write most of my code in neovim, and using jdtls (language server for Java) takes about 3 seconds to load up. The jump from these three seconds to nearly 10 minutes is awful, and seeing as I only use VS Code to run the “simulate robot code” feature of WPILib, it would be awesome if there was some way to simulate, perhaps directly from the command line?

I noticed that the simulator in VS Code uses VS Code’s debugging features, but I don’t ever use those and would rather just launch the simulation.

If there are any ideas as to how to bypass VS Code for simulation, they would be greatly appreciated.

You can launch it directly from the command line with ./gradlew simulateJava

3 Likes

Thanks! Does that also launch the simulation GUI, or is there something else to run that?

That will automatically launch any simulation extensions that are set to default in build.gradle (These are the ones that are automatically checked when you run in VS Code)

2 Likes