Skip to content
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

Trouble building 1.12 #40

Open
bbarker opened this issue May 27, 2018 · 2 comments
Open

Trouble building 1.12 #40

bbarker opened this issue May 27, 2018 · 2 comments

Comments

@bbarker
Copy link

bbarker commented May 27, 2018

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.

@delvr
Copy link
Owner

delvr commented Jun 1, 2018

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!

@jerbmega
Copy link

jerbmega commented Feb 9, 2019

Same issue for me, on both Windows and Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants