FabricMC/yarn

Yarn mappings for 24w33a and 24w34a behaving strangely. FabricLoader misinterpreting them and crashing on builds.

Closed this issue · 1 comments

The newest mappings conflict with Fabric Modloader's mixins, causing crashes. I've made sure to double check my mappings, my fabric version, my gradle files, everything is up to spec.

Note that this only started occurring with version 23w33a build 1, but has been persistent since.

To reproduce, fork the fabric example mod, modify the gradle.properties file to the current settings:
minecraft_version=24w34a
yarn_mappings=24w34a+build.4
loader_version=0.16.2
fabric_version=0.102.0+1.21

Then, update your gradle, and run the following commands;
.\gradlew migrateMappings --mappings "24w34a+build.4"
.\gradlew genSources

Finally, try building and running. You should get the following errors, which will crash Fabric:


[13:42:57] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_9175 (java.lang.ClassNotFoundException: net/minecraft/class_9175)
[13:42:57] [main/WARN] (FabricLoader/Mixin) @mixin target net.minecraft.class_9175 was not found fabric-lifecycle-events-v1.client.mixins.json:ClientTagLoaderMixin from mod fabric-lifecycle-events-v1
[13:42:57] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_3505 (java.lang.ClassNotFoundException: net/minecraft/class_3505)
[13:42:57] [main/WARN] (FabricLoader/Mixin) @mixin target net.minecraft.class_3505 was not found fabric-resource-conditions-api-v1.mixins.json:TagManagerLoaderMixin from mod fabric-resource-conditions-api-v1
[13:42:57] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_3505 (java.lang.ClassNotFoundException: net/minecraft/class_3505)
[13:42:57] [main/WARN] (FabricLoader/Mixin) @mixin target net.minecraft.class_3505 was not found fabric-resource-loader-v0.mixins.json:KeyedResourceReloadListenerMixin from mod fabric-resource-loader-v0
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_2591$class_2592 (java.lang.ClassNotFoundException: net/minecraft/class_2591$class_2592)
[13:42:58] [main/WARN] (FabricLoader/Mixin) @mixin target net.minecraft.class_2591$class_2592 was not found fabric-object-builder-v1.mixins.json:BlockEntityTypeBuilderMixin from mod fabric-object-builder-api-v1
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_5944$1 (java.lang.ClassNotFoundException: net/minecraft/class_5944$1)
[13:42:58] [main/WARN] (FabricLoader/Mixin) @mixin target net/minecraft/class_5944$1 was not found fabric-rendering-v1.mixins.json:shader.ShaderProgramImportProcessorMixin from mod fabric-rendering-v1
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_9824$class_7777 (java.lang.ClassNotFoundException: net/minecraft/class_9824$class_7777)
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_9824$class_7777 (java.lang.ClassNotFoundException: net/minecraft/class_9824$class_7777)
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_9383$class_9384 (java.lang.ClassNotFoundException: net/minecraft/class_9383$class_9384)
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_3505 (java.lang.ClassNotFoundException: net/minecraft/class_3505)
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_3505 (java.lang.ClassNotFoundException: net/minecraft/class_3505)
[13:42:58] [main/WARN] (FabricLoader/Mixin) Error loading class: net/minecraft/class_281$class_282 (java.lang.ClassNotFoundException: net/minecraft/class_281$class_282)
[13:43:02] [main/ERROR] (FabricLoader/Mixin) Mixin apply for mod fabric-entity-events-v1 failed fabric-entity-events-v1.mixins.json:EntityMixin from mod fabric-entity-events-v1 -> net.minecraft.entity.Entity: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on afterEntityTeleportedToWorld could not find any targets matching 'Lnet/minecraft/entity/Entity;method_48105(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FF)Z' in net/minecraft/entity/Entity. Using refmap fabric-entity-events-v1-refmap.json [INJECT_PREPARE Applicator Phase -> fabric-entity-events-v1.mixins.json:EntityMixin from mod fabric-entity-events-v1 -> Prepare Injections -> handler$zhk000$fabric-entity-events-v1$afterEntityTeleportedToWorld(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FFLorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;FLnet/minecraft/entity/Entity;)V -> Parse -> -> Validate Targets]

You are using the wrong version of Fabric API.