Open jakobmerrild opened 3 years ago
For what it's worth, I hit on this same issue as you today @kalanzai. I too went down the path of using -H:+ReportExceptionStackTraces
, which then lead me to try "--initialize-at-build-time=scala.collection.immutable.VM"
which brought other issues.
After seeing the convo here, and seeing that @olafurpg mentioned the issue for and the solution for 2.12.12+, I out of sheer curiosity tried it with 2.12.11, and all went well. I'd be curios if you switching to 2.12.11 would also fix what you're seeing.
I'm not fully sure why or how I can help track down this issue, but I'm happy to provide anything that might help @olafurpg. I can reproduce this fairly easy (with a bare moped project), but am unsure how to trace the root cause/issue.
OS: macOS Catalina 10.15.7 ScalaVersion: 2.12.12 (However, this works when I switch to 2.12.11) sbt: tried 1.3.13 and 1.4.x GraalVMVersion: 20.2.0 Java Version: both 8 and 11
Describe the bug We're trying to use this plugin rather than
scala-native-packager
butnative-image
seems to exit unexpectedly.After configuring the plugin with
nativeImageOptions ++= List("--no-fallback")
and running thenativeImage
command it fails with the following output:Adding the
-H:xxx
options changes the output as follows:Installation:
Search terms
Migrate, sbt-native-packager