-
Notifications
You must be signed in to change notification settings - Fork 220
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
jine 3.22.0 - unable to build native image with GraalVM + Quarkus #818
Comments
I think you should add Build option |
There's one change between JLine 3.21 and 3.22 that could be related. It's the fact that an indirection has been added and a |
@gnodet Thanks for the answer, do you know if those graalvm resources you mentioned should be automatically discovered and used by GraalVM during native image build, or do I need to somehow include it in my build configuration? |
Those resources should be automatically discovered. |
@vaclavsvejcar Do you have a simple reproducer for the problem ? |
@gnodet Yes, I created simple demo project where the issue can be reproduced: https://github.com/vaclavsvejcar/jline-graalvm-issue-demo It's basically a simple hello world Quarkus app as described on Get Started page, generated using following command:
Then I only added single class ConsoleUtils that only retrieves terminal.getStringCapability(InfoCmp.Capability.cursor_up) != null; When you try to build native image using
It will fail with the same error:
Hope this will help, let me know if you need some more info. |
Simply add the following dependency to you project:
The |
@gnodet This seems to fix the native image build itself, but now it seems that the native image uses dumb terminal instead, with this warning in logs:
Is there still something that might have changed in EDIT: debug log below
|
@vaclavsvejcar this has been fixed in JLine3.22.1-SNAPSHOT, see commit 8cb3793 |
Added missing JNA library required for determining terminal type during runtime. See jline/jline3#818
Hello,
I was using jline
3.21.0
with Quarkus2.15.3.Final
and GraalVM22.3.0
without any isues during building and running the native image, but after upgrading to jline3.22.0
I'm getting following error during native image build:Do you have any idea what could be the cause and what could have changed between those two jline versions? Also let me know if you need any more info.
Thanks a lot!
The text was updated successfully, but these errors were encountered: