Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Extension setup doesn't make changes #173

Open
currand opened this issue Jan 13, 2020 · 3 comments
Open

Extension setup doesn't make changes #173

currand opened this issue Jan 13, 2020 · 3 comments

Comments

@currand
Copy link

currand commented Jan 13, 2020

  1. I followed the documentation to install the extension
  2. Click on 'build.gradle' and select 'Setup Snobot Sim'
  3. VS Code adds two directories [snobotsim, simulatorconfig]
  4. Both directories are empty
  5. No changes made to build.gradle

VS Code Version: 1.41.1
MAC OS Sierra 10.13.6
Gradle 5.0.0
WPILib 2020.1.2

@pjreiniger
Copy link
Collaborator

The VS code extension is super new, and I definitely didn't test it on mac.

Questions:

  • Are you using the 2020 version? I forgot to actually release it until like 12 hours after the CD thread
  • Do you have only a robot project open in vscode? My plugin isn't super robust and will fail if you have a non single root open
  • Did any error messages come up?

@pjreiniger
Copy link
Collaborator

pjreiniger commented Jan 14, 2020

Nevermind, I tried using the published extension, it doesn't work. I'll try to fix that in the next couple of days. In the meantime, here is how you can do it manually. Unzip this onto your root directory. Be careful about overwriting the build.gradle file, the changes should be minimal, but you should do a diff before and after to make sure it looks sane

simulator_config.zip

EDIT:
That was from my teams robot, so you probably want to remove simulator_config/simulator_config.yml, since you might not want our motor simulation

@pjreiniger
Copy link
Collaborator

Update:
Still haven't looked into this, but there was another similar question on Chief Delphi

In the meantime, I've attached a zip of the config files. You can unzip that right on top of your robot project. NOTE it does include a build.gradle, so be sure to replace anything that was important for your robot

Also of note, the extension is now on the VS Code marketplace. It still will not make the sim config files, but it can run the simulator from the command palette.

snobot_sim_config.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants