-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depot fails to compile #16
Comments
Hello! This is Spotless letting you know that the files that you might have changed don't line up with the formatting style that is implemented. To fix it, you run the command suggested towards the end 'gradlew.bat :spotlessApply' on Windows machines or './gradlew spotlessApply' on Mac/Linux. You need to manually run it every time you change something before you build as the regular build command isn't setup to automatically format the code. |
Also, remember to update the project's tool chain as it's still on 2022.4.1. |
Thanks. As an FYI running the gradle batchfile does lead to another error in the CTRE Constant file. (we're looking at that now)
And good catch on the 2022.4.1 version thanks!
From: Adan Silva ***@***.***>
Sent: Friday, October 27, 2023 10:18 AM
To: frc3512/SwerveBot-2022 ***@***.***>
Cc: LTrain ***@***.***>; Author ***@***.***>
Subject: Re: [frc3512/SwerveBot-2022] Depot fails to compile (Issue #16)
Also, remember to update the project's tool chain as it's still on 2022.4.1.
-
Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAF3D3OLLXDE7S3LLHMAIOTYBO7CXAVCNFSM6AAAAAA6S2OUZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBSHE4TOMZUHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello - my students downloaded your depot to check it out and it fails to compile. I downloaded the code myself in a clean environment and they are correct. The failure is listed below. We're going to try to run gradlew.bat to fix the issues but you should take a look at it since this code branch is being prescribed as a solution for neos on an mk platform.
Task :spotlessGroovyGradleCheck FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':spotlessGroovyGradleCheck'.
The following files had format violations:
build.gradle
@@ -1,131 +1,131 @@
-plugins {\n
-}\n
-\n
-sourceCompatibility = JavaVersion.VERSION_11\n
-targetCompatibility = JavaVersion.VERSION_11\n
-\n
-def ROBOT_MAIN_CLASS = "frc.robot.Main"\n
-\n
-// Define my targets (RoboRIO) and artifacts (deployable files)\n
-// This is added by GradleRIO's backing project DeployUtils.\n
-deploy {\n
-\n
-\n
-\n
-}\n
-\n
-def deployArtifact = deploy.targets.roborio.artifacts.frcJava\n
-\n
-// Set to true to use debug for JNI.\n
-wpi.java.debugJni = false\n
-\n
-// Set this to true to enable desktop support.\n
-def includeDesktopSupport = false\n
-\n
... (214 more lines that didn't fit)
Violations also present in:
settings.gradle
Run 'gradlew.bat :spotlessApply' to fix these violations.
The text was updated successfully, but these errors were encountered: