-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[GR-62463] A language with id '???' is not installed #10724
Comments
Hi @bingo-soft, Thank you for reaching out to us about this. |
@selhagani Thank you very much! Yes, sure, I've seen this documentation. It is outdated, unfortunatelly. It mentions for example GraalVM Updater tool, which however is no longer present. Probably, the whole problem is that I'm trying to implement my language in Kotlin (not in pure Java) and probably there are some nuances, about it. So, my current setup consist from several lines of code, which is easily reproducible. First, LanguageInfo.kt:
Second, context class:
And third, language:
And I also created first unit test, just to test this initial setup:
Again, I get this notorious error message:
@selhagani If you have any ideas beyond the scope of this outdated documentation, I would be really glad, if you could shed some light on this. Thanks in advance! |
I also tried other dependencies - graal versions 21 - 23. But they result into a bigger list of errors, even more shaky. So, 24 version looks nice, the only problem with it is how to "install" a custom language. Probably, there are some public methods to do this or some API to test these internals. I do not know this code flow, when some language is supposed to finally be installed. @selhagani You will do a big favour, if you could share your know-how. Thanks for your time! |
If you have any troubles with reproducing the error, let me know! Thank you! |
I minimized it even more. So, I checked two cases, first one - calling custom language implemented in Java. Here is its source code:
And the second case - calling custom language implemented in Kotlin:
And the way I test them - is load them to a separate project like so:
And the actual test:
If I try to apply "ktl" language I get an error, that it is not installed, if however I try "test" language, it works. So, at first glance, it looks like |
Thank you for sharing the details with us! |
Hi there! @selhagani Are there any updates on this? |
I'm trying to build the simplest possible language on top of Truffle framework, but fail. This is how my build.gradle.kts looks like:
And these are my classes. First one defines some metadata about language
Custome context class:
And the language class itself:
I just minimized it as hard as possible. And this is how I try to test it:
And this is the error I get:
Unfortunatelly, I can not find any working example and not sure how to effectively debug it. I wish, someone explained how we can "install" our custom language. In documentation I see, that explicit initialize is not necessary, but I also tried to invoke eval on context, without calling initialize, but still get the very same error. Thanks in advance for any help! PS. I've seen similar issue threads, but to no avail. Documentation also seems to be rather outdated. Probably, I just have to know where to look. Thanks!
The text was updated successfully, but these errors were encountered: