Hello,
building Calcite has been a somewhat annoying experience. First some
annoying :core:checkstyleTest that interferes with files generated by
Intellij IDEA, with hundreds of error messages similar to the following:
[ant:checkstyle] [ERROR]
~/calcite-intellij/core/build/generated/sources/version/generated/org/apache/calcite/rel/rules/ImmutableFilterDateRangeRuleConfig.java:26:
Line is longer than 100 characters (found 107). [LineLength]
[ant:checkstyle] [ERROR]
~/calcite-intellij/core/build/javacc/javaCCTest/generated_tests/org/apache/calcite/tools/ImmutableMyProjectFilterRuleConfig.java:341:12:
Redundant 'final' modifier. [RedundantModifier]
These are easy to deal with temporarily by deleting the generated folders.
Any hint for a permanent fix is appreciated. Then I try to reproduce the *CI
/ CheckerFramework (JDK 11) (pull_request)* task locally:
$ JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64 ./gradlew clean
...
BUILD SUCCESSFUL in 5s
$ JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64 ./gradlew build -x test
-PenableCheckerframework
...
> Task :linq4j:jandexMain FAILED
...
Suppressed: com.github.vlsi.jandex.JandexFileParseException:
~/calcite-intellij/linq4j/build/classes/java/main/org/apache/calcite/linq4j/QueryableDefaults$ReplayableQueryable.class
...
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0
out of bounds for length 0
at
org.jboss.jandex.Indexer.updateTypeTarget(Indexer.java:898)
at
org.jboss.jandex.Indexer.updateTypeTargets(Indexer.java:630)
at org.jboss.jandex.Indexer.index(Indexer.java:1698)
at
com.github.vlsi.jandex.JandexWork.execute(JandexWork.kt:58)
... 33 more
FAILURE: Build failed with an exception.
...
Is there an easy way to fix the problem? The fallback solution is to rely
on the Github CI, which has passed for the same commit.
Cordialement / Best Regards,
*Thomas Rebele, PhD* | R&D Developer | Germany | www.tibco.com