-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update Jansi to 2.4.1 #106
Update Jansi to 2.4.1 #106
Conversation
Btw since the change involve native code, want to be more careful than usual. What procedures should we perform to ensure nothing goes wrong from this PR? I had checked windows-ansi/jni-graalvm/src/main/java/io/github/alexarchambault/windowsansi/NativeImageFeature.java Lines 54 to 68 in 6218565
And Jansi 2.4.1 still has the same set of classes, does that mean we don't need to change Also I saw recent Jansi build includes a https://github.com/fusesource/jansi/blob/012fdaa2efdb1bd11bc2a4b30736f958e1fa0482/pom.xml#L247 (introduced in fusesource/jansi@8bafdf7) |
I'd say publishing windows-ansi locally with these changes, building a coursier CLI native image with it and testing it ( |
Going to try that soon(ish), unless it's particularly straightforward for you or someone else reading this to try that? |
The tests don't have to be run on Windows ARM64, as:
|
Thanks a lot! I currently don't have access to a Windows Machine so having you trying these out can really speed things up. |
Building a coursier launcher with jansi bumped to a locally published version of this PR, and running it in a Windows ARM64 VM currently gives me:
(while it complains about being unable to load an AMD64 DLL on ARM64 with windows-ansi |
It seems jansi may not be loading the Windows ARM64 DLL. It appears with a
fusesource/jansi#292 probably fixes that, but it's not part of a jansi release yet. |
We might be able to work around it in the mean time by manually loading the |
Seems it works by customizing the right Java property, like
|
So the workaround should consist in detecting we're on Windows ARM64, checking if |
Hmm. Maybe we can wait for a few days to see if Jansi 2.4.2 will be released. I just made a comment fusesource/jansi#292 (comment) to request for a new Jansi release. |
@Friendseeker I added the workaround anyway, so that we don't have to wait any longer |
Merging, thanks @Friendseeker! |
Jansi 2.4.1 added support for Windows ARM.
Closes coursier/coursier#2175