-
Notifications
You must be signed in to change notification settings - Fork 163
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
graalvm native-image error #623
Comments
In order to find out exactly what's causing the error I need to change the source in skunk, I've cloned the library but I'm struggling to create a project that uses the cloned skunk project as a dependency in SBT. I've tried the obvious things: lazy val skunk = project.in(file("../skunk"))
lazy val root = project.in(file(".")).dependsOn(skunk) but that doesn't work. How can I depend on skunk so I can track down this error? |
I get the same error when I update to Scala 3. I did some debugging of the native build. The problem is scala/scala3#13568 and could probably be fixed by replacing the anonymous inner classes extending PreparedQuery for example. |
So if I'm understanding correctly, scala/scala3#13568 can cause Graal Native image to break? If so, that sounds like something that should be reported as an issue on the dotty repo. |
A new release built on Scala 3.3.4 (or 3.5.1) will fix this! |
3.3.4 released, haven't tested yet, but should be done, unless there are other issues. |
I'm trying out Skunk with graalvm's native-image feature. It's failing and I've narrowed it down to when I call
Session.prepare
. I've also noticed that Metals can't get any info on that function when hovering over it, perhaps these problems are related?The error from GraalVM is below.
I took a look at Skunk source code to see if I could find anything obvious that might be causing the error and all I can think is that there appears to be some cross compilation going on here, is there anything loading classes at runtime based on the platform or anything? GraalVM really dislikes that for obvious reasons.
It would be absolutely amazing to get Skunk working in a native image. All the other database libraries rely on JDBC and I haven't been able to get them to work.
The text was updated successfully, but these errors were encountered: