Open plusls opened 3 years ago
This is a serious problem that affects mod that uses JNA. Could we get backports of the library to fix all latest major versions of Minecraft?
Honestly, just a copy/paste of the Kotlin project seems to be in order. That repo has received significantly more love than this one, and the improvements could be easily transferred.
Just to confirm this was caused by the latest update to scala? If so I can remove the broken build.
The kotlin project is also a right pain to maintain, if it ever requires more work than just changing version numbers I will most likely rewrite to use a groovy gradle buildscript.
This has been an issue for ~3 years (if my git blame
is correct, it was introduced in https://github.com/FabricMC/fabric-language-scala/commit/1751ea72365964d508250b7ffed61c4ba5405b3b). It was rare enough that we just shrugged it off until now, when some people bothered to get to the bottom of it.
Ok thanks for looking into it. I will take a look ASAP.
This makes me unable to use this mod on m1
This issue is still an absolute pain. Means if a single modpack has one mod that relies on Fabric Language Scala you can't play it
I found that
fabric-language-scala@1.1.0+scala.2.13.6
in curseforge containscom.sun.jna
, after I installfabric-language-scala
, it will cause jna register fail, printI read the source code in jna, and found that
Native.getConversion
return -1.https://github.com/java-native-access/jna/blob/7ae36913c7094f14fc841555c8dd36ffdb67a3ee/src/com/sun/jna/Native.java#L1731
And I write the test code:
Before install
fabric-language-scala
:After install
fabric-language-scala
: