Releases: wpilibsuite/vscode-wpilib
Releases · wpilibsuite/vscode-wpilib
Alpha Update
This update fixes unix gradle builds, along with some issues with the template extraction
Alpha release of java support
Here are the steps to test.
- Make sure java and vscode are installed on system.
- Install the java extension pack into vscode.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack - Install the 2
.VSIX
files attached to this repo. To do this, open vscode, open the command palette (ctrl + shift + p), search forinstall from vsix
. Install both, ignore the first ones request to reload the window. perform the reload for the second one. - After a restart, go into the command palette, and search for
wpilib: create new project from template
. select that. If it asks for a language (it shouldn't), select java, then select a template. It will ask for a folder. Create a new empty folder somewhere on disk, and go into that folder and select it. It will ask to open the new project. - Once project is open, give it a few seconds for the java extension to load. You'll see on the bottom left what looks like gradle tasks. Wait for those tasks to stop.
- To deploy, hit
F5
. To debug, go into the debugging panel on the left, switch the debug configuration to WPILib Debug. This will switchF5
to debug. Switch it back to go back to deploying. Deploy can also happen with either theDeploy Robot Code
command in the command palette, or if you click on the...
at the top right of the editor, there will be aDeploy Robot Code
button. - ???
- Profit
If you already have an existing project, Follow the first 3 steps above, then the ones below.
- Open your gradlerio project in vscode.
- Go into the command palette, and search for
WPILib: Set Language
. Select java. - Go into the debug configuration pane, click on the selection at the top for configurations, and select
Add configurations
. Select WPILib debug and deploy. Now the project will be just like the templated one. Go back to step 6 of the fresh project instructions.