Programming resources for FIRST Robotics team 1318
To prepare your computer for robot programming with our team, follow these steps:
git config --global core.editor "code --wait" from a Command Prompt window.
code from the terminal successfully opens VS Code. If it does not, open VS Code, then open its command palette (Ctrl+P on Linux, Cmd+P on macOS), type “> path”, and select the option that mentions updating PATH or installing the code command.git config --global -e, and then add the following entries to the end of the file:
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff \"$LOCAL\" \"$REMOTE\"
JAVA_HOME and value C:/Program Files/Java/jdk-21 (or later if you installed a different version of the JDK), then click OK.https://github.com/irs1318dev/Fauxbot.git).cd C:/Users/username/git/).git clone https://github.com/irs1318dev/Fauxbot.gitcd C:/Users/username/git/Fauxbot) and tell Gradle to build the code in the directory by running gradlew build. If Gradle hasn’t been installed yet, this should trigger it to be installed. If you are running macOS or Linux, run the Gradle wrapper with a ./ prefix (./gradlew). If you are running in PowerShell instead of Command Prompt, run the Gradle wrapper with a ./ prefix (.\gradlew).code irs1318_Fauxbot.code-workspace. This opens VS Code with a reference to the folder you are currently exploring within the command prompt.irs1318dev group. If you haven’t done that, consider doing that first.irs1318dev group, you can select the repository you want (e.g., irs1318dev/Fauxbot) from a list of repositories under the GitHub.com tab. Otherwise, go to the URL tab and enter the repository you want (e.g., irs1318dev/Fauxbot) in the text box. Then choose a local path where this repository will be cloned (e.g., C:/Users/username/git/Fauxbot) and click the Clone button.C:/Users/username/git/Fauxbot).If you have issues building the code using Gradle for the first time, the cause may be one of the following:
gradlew. On macOS/Linux, gradlew is blocked from running by default. To allow it, run chmod +x gradlew and then chmod 755 gradlew.gradlew with a prefix. On macOS/Linux, run ./gradlew. In PowerShell, run .\gradlew.If you have issues using VS Code where everything is underlined in red, it may be one of the following:
*.code-workspace). Upon opening the directory, you may see a pop-up in the bottom-right asking if you meant to open the workspace instead—that’s the easiest way to switch. The workspace tends to work more reliably than opening the folder itself. To open the workspace, go to File → Open Workspace from File…, and select the .code-workspace file under the root of the repository.C:/Users/username/git/repository_name, but some tools like GitHub Desktop may suggest creating the repository in a subfolder under your Documents folder (e.g., C:/Users/username/OneDrive/Documents/GitHub/repository_name). You will run into fewer problems if you remove that repository and re-clone to the better location.