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
babashka.process crashes when there are certain GraalVM classes on the classpath #76
Comments
@hansbugge So you are not running in GraalVM, but there is |
Btw, the library should work both in a non-Graal and Graal JVM |
Yes indeed, it's on the classpath, and I'm on a regular OpenJDK 17. I don't know why, but it's pulled in by Clerk via a transitive dependency on I can reproduce the error with the commands I put in the top comment. By the way, my workaround for now is to pull in |
What I don't understand is that you can resolve |
I think I understand now. The third argument to exec was added in a later version of GraalVM. So it's likely that if clerk or you would upgrade the graaljs version, you would not have this error. |
Well, the overload with 2 args does exist, but not the one with 3. In the same REPL as above:
|
You're right, that fixed it! I gave an explicit dependency on
|
cc @mk |
That was quick. Thanks for your help! |
0.1.7 released |
@borkdude thanks for the mention. Is there anything actionable to do in Clerk? We actually rolled back an upgrade of graal-js after folks noticed that we dropped Java 8 compatibility nextjournal/clerk#178. |
I guess not, just a FYI. |
When there are certain GraalVM classes on the classpath
babashka.process
crashes.I'm guessing that this is because
babashka.process
wrongly thinks that it is running in a native GraalVM environment. I noticed it when runningnextjournal/clerk
which depends onorg.graalvm.js/js
viaio.github.nextjournal/markdown
.The text was updated successfully, but these errors were encountered: