Cant't launch mod in the Eclipse workspace
Bulldog83 opened this issue ยท 19 comments
There is an issue when I try to launch mod in the debug mode in the Eclipse IDE.
Exception in thread "main" java.lang.RuntimeException: Failed to read accessWidener file from mod fabric-object-builder-api-v1
at net.fabricmc.loader.transformer.accesswidener.AccessWidener.loadFromMods(AccessWidener.java:60)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:130)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.RuntimeException: Namespace (intermediary) does not match current runtime namespace (named)
at net.fabricmc.loader.transformer.accesswidener.AccessWidener.read(AccessWidener.java:78)
at net.fabricmc.loader.transformer.accesswidener.AccessWidener.loadFromMods(AccessWidener.java:58)
... 3 more
Minecraft 20w18a
Fabric 0.10.2+build.337-1.16
Yarn 20w18a-build.9
Loader 0.8.2+build.194
Loom 0.4.3
With loom 0.2.7 errors still exists :/
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'JustMap'.
> Failed to find mapping for EntryTriple{owner=net/minecraft/class_4970$class_2251,name=<init>,desc=(Lnet/minecraft/class_3614;Lnet/minecraft/class_3620;)V}
* 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 54s
duplicate input class net/fabricmc/fabric/mixin/object/builder/MixinBlock, from C:\Users\Bulldog\.gradle\caches\modules-2\files-2.1\net.fabricmc.fabric-api\fabric-object-builders-v0\0.5.0+bf7c167ae8\efdddd05c8cc477e2f3beb5860a6763b71b2986b\fabric-object-builders-v0-0.5.0+bf7c167ae8.jar and C:\Users\Bulldog\.gradle\caches\modules-2\files-2.1\net.fabricmc.fabric-api\fabric-object-builder-api-v1\1.0.1+bf7c167ae8\a16920d5ed6317d228db8e97dc1b4fb882da900f\fabric-object-builder-api-v1-1.0.1+bf7c167ae8.jar
With Minecraft 1.15.2 all are ok.
With build 14 the problem still exists. Also I have a warning while running 'gradlew eclipse' command:
:remapping fabric-object-builders-v0-0.5.0+bf7c167ae8.jar (TinyRemapper, intermediary -> named)
duplicate input class net/fabricmc/fabric/mixin/object/builder/MixinBlock, from C:\Users\Bulldog\.gradle\caches\modules-2\files-2.1\net.fabricmc.fabric-api\fabric-object-builder-api-v1\1.0.1+bf7c167ae8\a16920d5ed6317d228db8e97dc1b4fb882da900f\fabric-object-builder-api-v1-1.0.1+bf7c167ae8.jar and C:\Users\Bulldog\.gradle\caches\modules-2\files-2.1\net.fabricmc.fabric-api\fabric-object-builders-v0\0.5.0+bf7c167ae8\efdddd05c8cc477e2f3beb5860a6763b71b2986b\fabric-object-builders-v0-0.5.0+bf7c167ae8.jar
I've tried to clear gradle cache.
You need to update loom to 0.2.7. After doing that you may need to delete the remapped mods folder, this will be in your projects .gradle folder
I've tryed to clear all 20w18a gradle cashe, remove all eclipse configs, clear all 20w18a mapped files.
All the same, I have this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'JustMap'.
> Failed to find mapping for EntryTriple{owner=net/minecraft/class_4970$class_2251,name=<init>,desc=(Lnet/minecraft/class_3614;Lnet/minecraft/class_3620;)V}
And, as a consequence:
duplicate input class net/fabricmc/fabric/mixin/object/builder/MixinBlock, from C:\Users\Bulldog\.gradle\caches\modules-2\files-2.1\net.fabricmc.fabric-api\fabric-object-builders-v0\0.5.0+bf7c167ae8\5c6fcd0b9de00a60deb87ee3ead959d46b35d022\fabric-object-builders-v0-0.5.0+bf7c167ae8.jar and C:\Users\Bulldog\.gradle\caches\modules-2\files-2.1\net.fabricmc.fabric-api\fabric-object-builder-api-v1\1.0.1+bf7c167ae8\660d66966bbe9768e589a8f29897538335969d50\fabric-object-builder-api-v1-1.0.1+bf7c167ae8.jar
I use gradle-wrapper from the last fabric-example-mod.
The title should be Duplicate MixinBlock
from object builder v0 and object builder api v1
This error still exists:
:remapping fabric-object-builder-api-v1-1.2.0+57dbcc4cd2.jar (TinyRemapper, intermediary -> named)
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'JustMap'.
> Failed to find mapping for EntryTriple{owner=net/minecraft/class_4970$class_2251,name=<init>,desc=(Lnet/minecraft/class_3614;Lnet/minecraft/class_3620;)V}
* 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 59s
That PR didn't specifically target the EntryTriple issue but rather another issue elsewhere with some classes having identical names.
Really odd since I am not having this issue with bulky shulkies.
Does those issue occur with Loom 0.2.7
?
I have identical build.gradle scripts for all my branches, except a dependencies versions. For 1.15.2 all works fine, for 1.16 appeared this error since 20w18a.
Hmm, so I cloned JustMap's 1.16 branch and set modmenu to transitive = false
. I did manage to get an access widener error this time related to namespaces (wrong namespace).
So in your build.gradle
, see what happens if you change your modmenu entry to this:
modCompile ("io.github.prospector:modmenu:${project.modmenu_version}") {
transitive = false
}
EDIT: The modmenu change did let the jar build but it fails in runClient
This error appears only ones, at first run of the 'gradlew eclipse' command. At second time, this error not appears, but game runs with crash. If you'll delete the fabric-object-builder-api-v1
cache, the error will appear again.
Huh so it seems to be an accesswidener issue since the error message is similar to here:
This is really odd.
Make sure you are using v2 mappings, I need to improve the access widner remapping so this doesnt happen. Its a bit of a fluke that it works on v2 mappings.
Bingo:
https://github.com/Bulldog83/JustMap/blob/master/build.gradle#L39
@Bulldog83 See what happens if you use v2 mappings