You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.ClassNotFoundException: [Forge] Main class has not been determined yet!
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:421)
at java.base/java.lang.Class.forName(Class.java:412)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:85)
at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:220)
warning: dev-launch-injector in pass-through mode, parsing failed: java.io.IOException: invalid attribute: dataServerArgs
I know there is also an clientData() and serverData(), but there it says:
Exception in thread "main" java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at java.base/java.util.ImmutableCollections$List12.indexOf(ImmutableCollections.java:597)
at java.base/java.util.ImmutableCollections$AbstractImmutableList.contains(ImmutableCollections.java:331)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.ImmediateWindowHandler.load(ImmediateWindowHandler.java:49)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.ModDirTransformerDiscoverer.earlyInitialization(ModDirTransformerDiscoverer.java:42)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.lambda$discoverServices$17(TransformationServicesHandler.java:125)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:125)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:83)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:220)
I haven't found any solutions on the Architectury documentation and Discord.
When I'am looking where the problem is, I see in the RunConfigSettings.class this:
public void forgeTemplate(String templateName) {
ModPlatform.assertForgeLike(this.getExtension());
this.defaultMainClass("[Forge] Main class has not been determined yet!");
this.evaluateNowOrLater(() -> {
ForgeRunsProvider runsProvider = this.getExtension().getForgeRunsProvider();
ForgeRunTemplate template = (ForgeRunTemplate)runsProvider.getTemplates().findByName(templateName);
if (template != null) {
template.applyTo(this, runsProvider.getResolver(this));
} else {
this.project.getLogger().warn("Could not find Forge run template with name '{}'", templateName);
}
});
}
The text was updated successfully, but these errors were encountered:
Craftjakob
changed the title
Can't run NeoForge's dataGen
Can't run NeoForge's dataGen with Architectury Loom
Dec 27, 2024
is this 1.21.4? NeoForge changed how datagen worked on neoforge, see their blog post and this architectury loom commit. Either clientData() or serverData() might work, but if it doesn't then #258 might fix that
Using Architectury Loom 1.9
I am always using the newest Minecraft, Fabric and NeoForge version.
In Architectury Loom 1.7 everything worked fine, but now I can't build a project with this version. :c
When running runData with this configuration:
build.gradle : neoforge
build.gradle : main
This error occurs:
I know there is also an
clientData()
andserverData()
, but there it says:I haven't found any solutions on the Architectury documentation and Discord.
When I'am looking where the problem is, I see in the RunConfigSettings.class this:
The text was updated successfully, but these errors were encountered: