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

[HotFix] Fix an issue with Gradle 8.10 and worker threads realising values on Properties #261

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

marchermans
Copy link
Contributor

TLDR:

When an IDEA import is ran, the runs are realised potentially on a different thread then the thread that owns a project, this causes a hard to debug error which is hidden in an IDEA warning.

By realising the properties eagerly, and capturing them in locals (Which is possible), the resulting error is not triggered.

Further research:

  • finalizeOnRead()? might help here, but it might also not as the runs where not realised on those properties before during an import.

@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Jan 18, 2025

  • Publish PR to GitHub Packages

Last commit published: e1996d4ece74a60078c3760716d073a659de2049.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #261' // https://github.com/neoforged/NeoGradle/pull/261
        url 'https://prmaven.neoforged.net/NeoGradle/pr261'
        content {
            includeModule('net.neoforged.gradle', 'dsl-neoform')
            includeModule('net.neoforged.gradle', 'platform')
            includeModule('net.neoforged.gradle', 'common')
            includeModule('net.neoforged.gradle.common', 'net.neoforged.gradle.common.gradle.plugin')
            includeModule('net.neoforged.gradle.neoform', 'net.neoforged.gradle.neoform.gradle.plugin')
            includeModule('net.neoforged.gradle.vanilla', 'net.neoforged.gradle.vanilla.gradle.plugin')
            includeModule('net.neoforged.gradle', 'neoform')
            includeModule('net.neoforged.gradle', 'dsl-userdev')
            includeModule('net.neoforged.gradle', 'dsl-platform')
            includeModule('net.neoforged.gradle', 'dsl-mixin')
            includeModule('net.neoforged.gradle.userdev', 'net.neoforged.gradle.userdev.gradle.plugin')
            includeModule('net.neoforged.gradle', 'test-utils')
            includeModule('net.neoforged.gradle', 'dsl-common')
            includeModule('net.neoforged.gradle.mixin', 'net.neoforged.gradle.mixin.gradle.plugin')
            includeModule('net.neoforged.gradle', 'vanilla')
            includeModule('net.neoforged.gradle.platform', 'net.neoforged.gradle.platform.gradle.plugin')
            includeModule('net.neoforged.gradle', 'userdev')
            includeModule('net.neoforged.gradle', 'dsl-vanilla')
            includeModule('net.neoforged.gradle', 'mixin')
            includeModule('net.neoforged.gradle', 'utils')
        }
    }
}

@marchermans
Copy link
Contributor Author

Git F'ed itself with the tag checkout.
Merging as these test pass on different platforms.

@marchermans marchermans merged commit ee7b427 into NG_7.0 Jan 18, 2025
49 of 76 checks passed
@marchermans marchermans deleted the fix/idea-project-lock branch January 18, 2025 15:30
@neoforged-releases
Copy link

🚀 This PR has been released as NeoGradle version 7.0.179.

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

Successfully merging this pull request may close these issues.

1 participant