Open Karm opened 2 days ago
/cc @galderz (mandrel), @zakkak (mandrel,native-image)
Workaround is to remove dependency on quarkus-junit5
and tests as that brings in the readline/jansi...
Merely disabling tests like so is not enough:
C:\tmp\code-with-quarkus
λ mvnw clean package -Dnative -DskipTests -Dquarkus.profile=prod
and that is concerning on its own :(
Describe the bug
The library used to highlight and color terminal output on Windows, jline needs FFM. Hopefully, it doesn't do any upcalls...no idea why it should though.
We need to take a look at how we handle the library in Quarkus and to make it work on Windows. This issue slipped CI, because the logic detects it is not running in a proper terminal and does not execute. You need a real terminal, like the vanilla
cmd
or https://cmder.app/ like I use to trigger it. Actually any terminal the JANSI (JLINE) can work with triggers the issue on Windows.Expected behavior
It works.
Actual behavior
It crashes during build.
Workaround
Remove quarkus-junit5 from the project.
How to Reproduce?
Log
Note that just simply adding the option doesn't help:
Output of
uname -a
orver
Windows 2019
Output of
java -version
23.0.0 23+37
Mandrel or GraalVM version (if different from Java)
OpenJDK 64-Bit Server VM Mandrel-24.1.0.0-Final (build 23+37, mixed mode)
Quarkus version or git rev
3.14.4, 3.15.0, 3.15.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)mvnw
Additional information
No response