Trouble building 1.12
bbarker opened this issue ยท 2 comments
Output from ./gradlew build
:
Download https://repo.maven.apache.org/maven2/com/typesafe/sbt/incremental-compiler/0.13.15/incremental-compiler-0.13.15.jar
Pruning sources from previous analysis, due to incompatible CompileSetup.
/home/brandon/workspace/Farseek/build/sources/main/scala/farseek/block/package.scala:47: ambiguous reference to overloaded definition,
both method getObject in class RegistryNamespacedDefaultedByKey of type (x$1: net.minecraft.util.ResourceLocation)net.minecraft.block.Block
and method getObject in class RegistryNamespaced of type (x$1: K)V
match expected type ? => ?
lazy val allBlocks: Set[Block] = Block.REGISTRY.getKeys.map(Block.REGISTRY.getObject).toSet[Block]
^
one error found
:compileScala FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileScala'.
> Compilation failed
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 46s
19 actionable tasks: 19 executed
I can try to take a look at this if nothing obvious comes to mind (though my knowledge of gradle is very limited), but I heard Farseek may be undergoing some big changes soon, so I wonder if it is better to wait.
That's intriguing, I never got this error before. I'm on Windows, seems like you're on Linux or Mac, not sure if it makes a difference. Do you have any custom settings such as in user-level Gradle configs that could be overriding options in the project?
You could also try tweaking the erroring line with some explicit typing and make a PR if that resolves it. Thanks!