No Script Engine Found
I just installed DataGrip for the first time yesterday and am trying to use Generate POJO.clj or a downloaded Generate POCO.clj but I keep getting this error:
No script engine found for file extension 'clj': Please, make sure your script engine jar(s) and language runtime are in the IDE classpath.
If I go to Tools > IDE Scripting Console, I see only Groovy and ECMAScript, but I can't figure out how to set up another script engine. I do at least have the Clojure-Kit Plugin installed.
What am I doing wrong?
Please sign in to leave a comment.
@Oleg Shevchenko thanks!
Before we also had Clojure engine and some people used it for scripting. If you strongly wish to use Clojure for scripting, please download Clojure runtime and scripting engine files here and place them in the lib folder inside the installed DataGrip folder.
This used to work...newer versions it doesn't know. I'd also appreciate knowing what I need to do to fix this.
Hi,
As a temporary solution:
Thank you.
Is this fixed?
I've hit the same problem today, and I find this workaround unacceptable. Should it really be a recommendation to drop files into an app's installation folder? This seems like an attack vector to me.
But if it has to be done... where does clojure-1.8.0.jar come from?
The issue is that the underlying libraries for these features is part of IntelliJ IDE and not part of the Datagrip IDE distribution. For me, copying the clojure-1.8.0.jar did not work. It may work if I grabbed all the jars from the IntelliJ lib directory, but I am not willing to currupt my installation to that degree.
The option to "generate POJOS.groovy" did work.
JetBrains should either fix or remove the non-working script from the menu. I am still trying to figure out what I gain in using the DataGrip product that I can't do in IntelliJ IDEA Ultimate, but this is one huge example of why I shouldn't move my database work out of IntelliJ.
For those who are missing Generate POCO.clj (C# classes) I've rewritten the script to groovy lang.
You can download the script here https://github.com/olsh/datagrip-poco-generator
Thanks Oleg, that was actually my main use of the feature :).