live-plugin icon indicating copy to clipboard operation
live-plugin copied to clipboard

clojure support

Open schneiderlin opened this issue 3 years ago • 3 comments

amazing plugin! could you please add Clojure support back? how can I help, I can try to translate kotlin script to Clojure

schneiderlin avatar Jul 11 '22 23:07 schneiderlin

Thank you! Sure, I look into it. I wonder if there is a reason why you use LivePlugin instead of https://www.jetbrains.com/help/idea/ide-scripting-console.html which should already support Clojure?

In LivePlugin it should be just another implementation of PluginRunner and a bunch of actions (also a downloader for Clojure runtime jar). There is no Kotlin script really, just Kotlin.

Just for the record, these are the reasons I removed Clojure/Scala support:

  • it was an experiment at the time when Clojure/Scala were the coolest thing on the JVM
  • maintenance cost: I didn't really use Clojure in LivePlugin and wasn't sure if anyone else is using it
  • IDE or LivePlugin APIs were not designed for Clojure and having an idiomatic API for a specific language was one of the main ideas behind LivePlugin. It's easy to evaluate code on JVM in any JVM language but then it might be really painful to use IDE APIs written in Java/Kotlin (this is the main problem with IDE Scripting Console for me).
  • Kotlin is bundled with IntelliJ IDEs which are written Java/Kotlin so Kotlin seems like a better "default" language and I wanted LivePlugin to be a bit more focused

dkandalov avatar Jul 12 '22 08:07 dkandalov

I couldn't get ide-scripting-console with Clojure working correctly, it seems like lack of document and is not actively maintained.

schneiderlin avatar Jul 12 '22 15:07 schneiderlin

👍 Good to know so I don't make the same mistakes 😅

dkandalov avatar Jul 12 '22 15:07 dkandalov