olofwalker / ting Goto Github PK
View Code? Open in Web Editor NEWCommand-line based ticket system written in Scala 3
License: GNU General Public License v3.0
Command-line based ticket system written in Scala 3
License: GNU General Public License v3.0
Hello @olofwalker ,
first of all, thanks for this project it looks really cool and I would love to play around with it on my machine. I am getting this error though when I run the sbt graalvm-native-image:packageBin
command.
I am running on MacOs Sierra
What I did:
graalvm-ce-java8-19.3.0
/Library/Java/JavaVirtualMachines/graalvm-ce-java8-19.3.0/Contents/Home/
gu install native-image
sbt graalvm-native-image:packageBin
~/P/ting (master|โ) $ sbt graalvm-native-image:packageBin
[info] Loading project definition from /Users/clem/Projects/ting/project/project
[info] Loading settings for project ting-build from plugins.sbt ...
[info] Loading project definition from /Users/clem/Projects/ting/project
[info] Loading settings for project root from build.sbt ...
[info] Set current project to ting (in build file:/Users/clem/Projects/ting/)
[info] Wrote /Users/clem/Projects/ting/target/scala-0.23/ting_0.23-0.1.0.pom
[info] Compiling 10 Scala sources to /Users/clem/Projects/ting/target/scala-0.23/classes ...
[info] Done compiling.
[info] Packaging /Users/clem/Projects/ting/target/scala-0.23/ting_0.23-0.1.0.jar ...
[info] Done packaging.
[info] Build on Server(pid: 49990, port: 56032)*
[info] [ting:49990] classlist: 6,491.35 ms
[info] [ting:49990] (cap): 1,672.52 ms
[info] WARNING: Could not resolve java.lang.invoke.VarHandle for reflection configuration.
[info] [ting:49990] setup: 3,369.43 ms
[error] warning: unknown anonymous info of class scala.deriving$Mirror$Product, assuming class is not anonymous. To remove the warning report an issue to the library or language author. The issue is caused by scala.deriving$Mirror$Product which is not following the naming convention.
[error] warning: unknown anonymous info of class scala.deriving$Mirror$Sum, assuming class is not anonymous. To remove the warning report an issue to the library or language author. The issue is caused by scala.deriving$Mirror$Sum which is not following the naming convention.
[error] warning: unknown anonymous info of class scala.deriving$Mirror$Singleton, assuming class is not anonymous. To remove the warning report an issue to the library or language author. The issue is caused by scala.deriving$Mirror$Singleton which is not following the naming convention.
[info] [ting:49990] (typeflow): 11,540.40 ms
[info] [ting:49990] (objects): 9,177.25 ms
[info] [ting:49990] (features): 599.34 ms
[info] [ting:49990] analysis: 21,947.46 ms
[error] Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call: java.lang.invoke.LambdaForm$MH/688927712.invoke_MT(Object, Object)
[error] To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed.
[error] Detailed message:
[error] Trace:
[error] at parsing scala.runtime.Statics.releaseFence(Statics.java:148)
[error] Call path from entry point to scala.runtime.Statics.releaseFence():
[error] at scala.runtime.Statics.releaseFence(Statics.java:148)
[error] at scala.collection.immutable.$colon$colon.<init>(List.scala:586)
[error] at scala.collection.immutable.List.$colon$colon(List.scala:97)
[error] at scala.util.CommandLineParser$.parseRemainingArguments(CommandLineParser.scala:33)
[error] at com.pharway.ting.ting.main(Main.scala:20)
[error] at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:151)
[error] at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:186)
[error] at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
[error] Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
[error] Error: Image build request failed with exit status 1
[error] java.lang.RuntimeException: Failed to run List(native-image, --class-path, /Users/clem/Projects/ting/target/scala-0.23/ting_0.23-0.1.0.jar:/Users/clem/.ivy2/cache/ch.epfl.lamp/dotty-library_0.23/jars/dotty-library_0.23-0.23.0-RC1.jar:/Users/clem/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.13.1.jar:/Users/clem/.ivy2/cache/net.jcazevedo/moultingyaml_2.13/jars/moultingyaml_2.13-0.4.1.jar:/Users/clem/.ivy2/cache/com.github.nscala-time/nscala-time_2.13/jars/nscala-time_2.13-2.22.0.jar:/Users/clem/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.10.1.jar:/Users/clem/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-2.2.0.jar:/Users/clem/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.13.0.jar:/Users/clem/.ivy2/cache/org.yaml/snakeyaml/bundles/snakeyaml-1.24.jar:/Users/clem/.ivy2/cache/com.lihaoyi/os-lib_2.13/jars/os-lib_2.13-0.3.0.jar:/Users/clem/.ivy2/cache/com.lihaoyi/geny_2.13/jars/geny_2.13-0.1.8.jar, -H:Name=ting, -H:ReflectionConfigurationFiles=/Users/clem/Projects/ting/graal/reflect-config.json, -H:ResourceConfigurationFiles=/Users/clem/Projects/ting/graal/resource-config.json, --initialize-at-build-time, --initialize-at-run-time=com.typesafe.config.impl.ConfigImpl$EnvVariablesHolder,com.typesafe.config.impl.ConfigImpl$SystemPropertiesHolder, --no-fallback, --static, --allow-incomplete-classpath, com.pharway.ting.ting), exit status: 1
[error] at scala.sys.package$.error(package.scala:26)
[error] at com.typesafe.sbt.packager.graalvmnativeimage.GraalVMNativeImagePlugin$.buildLocal(GraalVMNativeImagePlugin.scala:104)
[error] at com.typesafe.sbt.packager.graalvmnativeimage.GraalVMNativeImagePlugin$.$anonfun$scopedSettings$7(GraalVMNativeImagePlugin.scala:68)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (Graalvm-native-image / packageBin) Failed to run List(native-image, --class-path, /Users/clem/Projects/ting/target/scala-0.23/ting_0.23-0.1.0.jar:/Users/clem/.ivy2/cache/ch.epfl.lamp/dotty-library_0.23/jars/dotty-library_0.23-0.23.0-RC1.jar:/Users/clem/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.13.1.jar:/Users/clem/.ivy2/cache/net.jcazevedo/moultingyaml_2.13/jars/moultingyaml_2.13-0.4.1.jar:/Users/clem/.ivy2/cache/com.github.nscala-time/nscala-time_2.13/jars/nscala-time_2.13-2.22.0.jar:/Users/clem/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.10.1.jar:/Users/clem/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-2.2.0.jar:/Users/clem/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.13.0.jar:/Users/clem/.ivy2/cache/org.yaml/snakeyaml/bundles/snakeyaml-1.24.jar:/Users/clem/.ivy2/cache/com.lihaoyi/os-lib_2.13/jars/os-lib_2.13-0.3.0.jar:/Users/clem/.ivy2/cache/com.lihaoyi/geny_2.13/jars/geny_2.13-0.1.8.jar, -H:Name=ting, -H:ReflectionConfigurationFiles=/Users/clem/Projects/ting/graal/reflect-config.json, -H:ResourceConfigurationFiles=/Users/clem/Projects/ting/graal/resource-config.json, --initialize-at-build-time, --initialize-at-run-time=com.typesafe.config.impl.ConfigImpl$EnvVariablesHolder,com.typesafe.config.impl.ConfigImpl$SystemPropertiesHolder, --no-fallback, --static, --allow-incomplete-classpath, com.pharway.ting.ting), exit status: 1
[error] Total time: 44 s, completed Apr 25, 2020 2:13:20 AM
Do you have any idea what the issue is? Did you use graal-java11-19.3.0?
Maybe I need to create the fat jar etc, but I never used assembly
and am new to sbt so maybe you could elaborate a little bit more on the steps that need to be done, considering that I just cloned your project.
Thanks a lot in advance!
Clem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.