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

Big Update #42

Closed
wants to merge 21 commits into from
Closed

Big Update #42

wants to merge 21 commits into from

Conversation

Spinoscythe
Copy link

@Spinoscythe Spinoscythe commented Feb 25, 2024

Update to Neo stable and foojay, enable support for DCEVM and automatically add access transformers when present
EDIT: Update Parchment!
Also supersedes #38

@pupnewfster
Copy link
Member

Based on #24 (comment) I am not sure if the logging properties should be changed (though fixing the gametest ones definitely is good)

build.gradle Outdated
Comment on lines 45 to 47
if (run.project.javaToolchains.launcherFor(java.toolchain).map { it.metadata.vendor }.getOrElse("").contains("JetBrains")) {
run.jvmArgument("-XX:+AllowEnhancedClassRedefinition")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this isn't enough to just support DCEVM out of the box if that was your intention. It just makes it so if you are using it then it gets properly enabled. To make it enabled by default you would need to set it via the toolchain, and also update the gradle wrapper to at least 8.4 so that it can provide the jetbrains one

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intention indeed WAS to make it so that if you are using it then it gets properly enabled

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary; I would instead suggest something like this:

// If you wish to use enhanced class hotwsapping during debug (DCEVM), uncomment this line.
// java.toolchain.vendor = JvmVendorSpec.JETBRAINS // NOTE: Requires Gradle 8.4 or above
// If you wish to use enhanced class hotwsapping during debug (DCEVM), uncomment this block.
/*
runs.configureEach {
    it.jvmArgument "-XX:+AllowEnhancedClassRedefinition"
}
*/

@Spinoscythe
Copy link
Author

got it

@Spinoscythe Spinoscythe reopened this Feb 25, 2024
build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated
systemProperty 'forge.logging.console.level', 'debug'
run.systemProperty 'forge.logging.console.level', 'debug'

if (run.project.javaToolchains.launcherFor(java.toolchain).map { it.metadata.vendor }.getOrElse("").contains("JetBrains")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really a fan of adding something so specific to the MDK. Using DCEVM is an advanced configuration and comes with its own set of problems. Without any documentation this also looks like a completely arbitrary check to anyone not already familiar with DCEVM. I personally would prefer having the docs mention the possibility of using DCEVM and what is required to set it up instead of having this in the MDK, especially considering that this is nowhere near the complete setup.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting the entire block out as-is is not what I meant. If it's commented out and has a comment explaining what it's for, then the check is unnecessary. It should either be what FiniteReality mentioned above with two simple, commented-out blocks or (preferably, in my opinion) removed entirely from the MDK and instead documented on our docs

@Spinoscythe
Copy link
Author

I want to redo this

@sciwhiz12 sciwhiz12 mentioned this pull request Mar 30, 2024
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.

5 participants