-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fixes MixinIntermediaryDevRemapper.mapMethodName unable to map ambiguous values #751
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
brings it in line with the field remapping code, not 100% sure but plausible
I was unable to reproduce this 🤔 I think the change is still OK, but I wanted to double check. I downloaded the latest version of lithium for 1.19.3 and was able to to run in dev without issue?. The refmap contains the full desc for the method you pointed out
I am unsure how you were able to get into this state? A way to reproduce this and/or a crash log would be useful. |
I can reliably reproduce this using this commit of fabric-example-mod (the current version at this point). Steps to reproduce:
Note: it may involve another mixin crashing, this patch for lithium fixes that. Some analysis copied from caffeine discord lithium dev channel: im pretty sure this is a loader bug and/or a yarn bug
the issue is remapping method names: fabric-loader/src/main/java/net/fabricmc/loader/impl/util/mappings/MixinIntermediaryDevRemapper.java Line 103 in 354af34
according to the debugger this method is for remapping intermediary name to the current devlaunch mapped name
class names and method descriptors are then remapped successfully then mixin just tries to look for methods with this wrong target descriptor and fails |
Thanks for getting back quickly I was able to reproduce it 👍 This fix works and intented, many thanks. |
…ous values Adapted from Fabric Loader commit 0a456127f8cb69a24d5ddf6a0699dd17785c0ffd, PR FabricMC/fabric-loader#751. Co-authored-by: ishland <[email protected]>
This PR fixes this mixin from lithium unable to be applied cleanly in 1.19.3 devlaunch using
1.19.3+build.2
yarn mappings.