-
Notifications
You must be signed in to change notification settings - Fork 11
Simulator is not building #57
Comments
Poor/outdated documentation, Sorry about that. Your dependency block should probably look something like this:
I would always check the examples for the recommended layout. I use those to test the simulator before a release, and release updates to both at the same time, so that is pretty much guaranteed to be up to date. I can get lax on the wiki page. This is probably the best one to look at |
I am having similar issues building. I can't even build the examples, so obviously something wrong with my setup and not the files themselves. FAILURE: Build failed with an exception.
Any thoughts/ideas where to start? BR, |
OK, done a completely clean install of VSCode to try to address some other issues and tried this again. FAILURE: Build failed with an exception.
Any thoughts please? BR, |
@WWRC-FRC You should be using a newer plugin. I might not have updated the examples, I've been on work travel forever. Here are some recommended settings
If you are using REV SparkMax's, you will need to add this in
And in your dependencies block (which hasn't changed in 2019)
This may or may not be closed source at the moment. I don't think I have the permissions to open it up, but here is what my team has https://gitlab.com/XCats/Software/software-2019/blob/dev/DeepSpace2019/build.gradle |
First, Thanks for the response. Very much appreciated :) Work can often get in the way !!! We are not using SparkMax, but I added it just as a test.
|
Sanity checks:
That seems like a weird error, is that what is coming directly from the console? If not could you post that and put it in a code/quote block? I just checked the plugin, the gradle website is showing that 2019.2.0.0 is there and is the latest https://plugins.gradle.org/plugin/com.snobot.simulator.plugin.SnobotSimulatorPlugin If your code is open source and on github/gitlab I can take a look at the build file and structure to see if anything jumps out |
Online, yes, but company firewall might be causing issues, although I can access "https://plugins.gradle.org/plugin/com.snobot.simulator.plugin.SnobotSimulatorPlugin" from a browser so don't think it is blocked. Here is the terminal message in its entirety...
|
Typically when I point to an invalid release, or am not online it dumps out the website addresses it tries to crawl rather than "Gradle Central Plugin Repository". Might be gradle version, might be because that is usually dependencies rather than plugins... I would definitely try on a less locked down computer. I remember when Jaci was trying to set up GradleRIO and managing her own maven repo for CTRE/NavX stuff people were having trouble reaching a server in Australia. I can tell you that the (somewhate outdated) examples build with a CI tool (minus the ever broken C++ simulations), as does my teams code. There are probably better ways to check the gradle version, but the quick and dirty way I typically do is look at |
So, here at home I can build everything and the simulations seem to run fine on my home computer:) |
Managed to get the simulator running with Driver Station at last :) |
The simulator actually simulates the drive train. I experimented with using the WPI tool that would use the real driver station, but it wasn't ready by the start of the season. You can tell the simulator what joysticks to use (including the ability to use the keyboard as a mock joystick) |
Thanks. Will look into that more. BR, |
Describe the bug
Describe the issue you are seeing with the simulator
Quick Glance Configuration
Please provide the following information
To Reproduce
Please information on when the issue occurs, and/or what you did to cause the issue to surface. i.e.
gradlew build
)? yesgradlew runSnobotSim
)? yesExpected behavior
The code will build
Detailed Setup
Stacktrace:
Why is the simulator not building?
Thanks a lot!
The text was updated successfully, but these errors were encountered: