Open msp-gh opened 6 months ago
Hello @msp-gh, we are working on this. We will get back to you as soon as we can.
Hi @ZynoZin. Do you have any update for me?
Hi @msp-gh, can you please share a reproducer with steps, as this is complicated to reproduce without one
I've attached the build.sbt
file and the TruffleLanguage
class in the above description. Just the class and the build file is all you need to reproduce the issue. Are you able to use the Registration
annotation and register the language in Scala?
Hi @msp-gh we apologize for the late response. You are using JDK22, so all languages should be proper modules and put on the JVM module path. This blog post should be relevant to your use case.
I think @chumer might have more info to help you about this.
@ZynoZin I have an update for you. If TruffleLanguage
class (that's mentioned in the above description) is changed to Java file (with the exact same setup and no other changes), Truffle is able to see my language. If I change it to Scala, Truffle has problems finding it. The registration annotation is present in the bytecode generated by the Scala compiler. Any idea what's happening here? I think the problem is related to the annotation processing and the subsequent finding by Truffle.
cc @chumer
Output of
java -Xinternalversion
:Was obtained from/using:
sdk install java 22.0.1-graal
.Issue: I'm using Truffle to build my own language and I've annotated the
TruffleLanguage
subtype using theRegistration
annotation. I've also added the jar using-Dtruffle.class.path.append=
option. However, Truffle still complains that it can't find my language by the ID.Here's the build file:
Error:
Here's how my
TruffleLanguage
sub type looks like:I'd be glad if someone could help me out.