Skip to content

Commit

Permalink
trying older verison
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwatson committed Jul 26, 2024
1 parent 536cdef commit e55b4ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ task buildRustWindows(type: Exec) {
}

task buildRustLinux(type: Exec) {
environment 'PATH', System.getenv('PATH') + ":/home/jitpack/build/xpack-gcc-13.3.0-1/bin"
environment 'PATH', System.getenv('PATH') + ":/home/jitpack/build/xpack-gcc-11.2.0-1/bin"
commandLine System.properties['user.home'] + '/.cargo/bin/cargo', 'build', '--target', 'x86_64-unknown-linux-gnu'
}

Expand Down
4 changes: 2 additions & 2 deletions jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ before_install:
- sdk install java 17.0.1-open
- sdk use java 17.0.1-open
# GCC
- wget https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-1/xpack-gcc-13.3.0-1-linux-x64.tar.gz
- tar xvf xpack-gcc-13.3.0-1-linux-x64.tar.gz
- wget https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v11.2.0-1/xpack-gcc-11.2.0-1-linux-x64.tar.gz
- tar xvf xpack-gcc-11.2.0-1-linux-x64.tar.gz
# MinGW
- wget https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/download/v13.3.0-1/xpack-mingw-w64-gcc-13.3.0-1-linux-x64.tar.gz
- tar xvf xpack-mingw-w64-gcc-13.3.0-1-linux-x64.tar.gz
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/frc5572/robotools/RobotProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
import javax.lang.model.element.ModuleElement;
import javax.lang.model.element.PackageElement;
import javax.lang.model.element.TypeElement;
import javax.tools.JavaFileManager;
import javax.tools.StandardLocation;

import org.apache.commons.lang3.SystemUtils;

import com.sun.source.util.Trees;
import com.sun.tools.javac.file.Locations;

/**
* Annotation processor for checks. Used by VS Code.
Expand Down Expand Up @@ -73,6 +76,8 @@ public boolean process(Set<? extends TypeElement> arg0, RoundEnvironment roundEn
p = p.getParent().getParent().getParent().getParent();
String generated = run(p.toString());
try {
var raw = processingEnv.getFiler().getResource(StandardLocation.ANNOTATION_PROCESSOR_PATH, "", "test.txt");

Check warning on line 79 in src/main/java/org/frc5572/robotools/RobotProcessor.java

View workflow job for this annotation

GitHub Actions / Linting

[testtool] reported by reviewdog 🐶 Line is longer than 100 characters (found 139). Raw Output: /github/workspace/./src/main/java/org/frc5572/robotools/RobotProcessor.java:79:0: warning: Line is longer than 100 characters (found 139). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)

var file = processingEnv.getFiler().createSourceFile("org.frc5572.Generated");

Check warning on line 81 in src/main/java/org/frc5572/robotools/RobotProcessor.java

View workflow job for this annotation

GitHub Actions / Linting

[testtool] reported by reviewdog 🐶 Line is longer than 100 characters (found 110). Raw Output: /github/workspace/./src/main/java/org/frc5572/robotools/RobotProcessor.java:81:0: warning: Line is longer than 100 characters (found 110). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
try(var writer = file.openWriter()) {

Check warning on line 82 in src/main/java/org/frc5572/robotools/RobotProcessor.java

View workflow job for this annotation

GitHub Actions / Linting

[testtool] reported by reviewdog 🐶 WhitespaceAround: 'try' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3) Raw Output: /github/workspace/./src/main/java/org/frc5572/robotools/RobotProcessor.java:82:33: warning: WhitespaceAround: 'try' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3) (com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck)
writer.write(generated);
Expand Down

0 comments on commit e55b4ad

Please sign in to comment.