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

Datagen task doesn’t exit when finished #189

Open
JT122406 opened this issue Dec 30, 2023 · 9 comments
Open

Datagen task doesn’t exit when finished #189

JT122406 opened this issue Dec 30, 2023 · 9 comments

Comments

@JT122406
Copy link

When running forge or fabric Datagen the task doesn't end it just continues forever until force stopped by input.

@qyl27
Copy link

qyl27 commented Jan 17, 2024

Same issue, and it has already existed for many months.

@Fuzss
Copy link

Fuzss commented Apr 23, 2024

Maybe related: neoforged/FancyModLoader#117

@qyl27
Copy link

qyl27 commented Apr 23, 2024

Maybe related: neoforged/FancyModLoader#117

But this issue also happens on LexForge and Fabric.
I have noticed it since 1.18.
Maybe a deeper problem here.

@Fuzss
Copy link

Fuzss commented Apr 23, 2024

I meant to refer to the solution the PR is implementing. Maybe it's applicable here as well.

@qyl27
Copy link

qyl27 commented Apr 23, 2024

I meant to refer to the solution the PR is implementing. Maybe it's applicable here as well.

Oh, so they should do same in ForgeModLoader and Fabric Loader.

@forkiesassds
Copy link

Looking at it closer. Fabric API has 2 mixins, one for client and another for server. The client mixin uses System.exit(0), whilst the server mixin simply cancels main() after running datagen. Since main() has finished running but as there are several ExecutorService pool threads that remain running, this causes the task to never stop. Or well something at least to do with the Architectury Transformer...

@Jab125
Copy link
Member

Jab125 commented Jul 5, 2024

Does adding this to the dependency list fix any issues?

// Requires Jitpack
dependencies {
    if (System.getenv("CI") != null) {
        // For 1.21
        modLocalRuntime "com.github.jab125.architectury-data-generation-fix:architectury-data-generation-fix-fabric:21.0.1"
    }
}

@Fuzss
Copy link

Fuzss commented Jul 6, 2024

@JT122406
Copy link
Author

JT122406 commented Jul 8, 2024

Mixins and extra dependencies shouldn’t be needed for this to work it should just work with arch loom at least with the fabric datagen, the forge I can understand because loom is based on fabric

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

No branches or pull requests

5 participants