architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
310 stars 56 forks source link

[1.20.6] Neoforge fails to function during runCommonDatagen #533

Open Lyinginbedmon opened 2 months ago

Lyinginbedmon commented 2 months ago

I've created a fresh 1.20.6 workspace using the Architectury project generator for Fabric & Neoforge. Having followed the documentation guidelines to implement data generation, I am able to access the runCommonDatagen gradle task.

However, firstly I encounter an error related to the absence of a proper processResources call in the data generation procedure, causing the mod to be rejected due to an invalid version number defined in mods.toml using a placeholder. I amended this to a static value of 1.0.0 for the time being and repeated running the runCommonDatagen task.

This resulted in the following crash, which seems to be rooted in the Neoforge sub-project itself and not with any portion of my own code. As stated, this occurs even in a blank slate workspace.

Full crash report

KangaliaV commented 1 month ago

I am experiencing the exact same issue in 1.21, which is preventing me from running any world generation data gen tasks. Hopefully this is fixed soon!

Jab125 commented 1 month ago

are you using the official Mojang mappings, or Yarn?

Lyinginbedmon commented 1 month ago

Yarn