What's your workflow when writing scripts for Joker? Can I somehow fireup a REPL while developing my scripts and inspect/experiment with joker standard namespaces (https://candid82.github.io/joker/) ?
Ya totally
If you run just joker
it drops you in a REPL
But no editor integration, there's no nRepl or Cider for it
It's just Clojure for the most part. clojure.core is almost all there and identical
But none of the other namespaces are. Instead it offers its own set of additional namespaces. Which the link you have is the reference for.
In your script, you can also just shebang for joker to run them
Or call joker my-script.joke
Yeah, I use (load-file...)
generously, I wish there was something like Cursive for it so that I can edit the code in the IDE and evaluate in the REPL.
It has a socket REPL so something like https://github.com/mfikes/tubular should work with Cursive
woah! Thanks for pointing it out!
I'm getting:
<srepl>:6:2: Parse error: Unable to resolve symbol: clojure.lang.Compiler/load
:thinking_face: I'll look more into thisOh maybe that using internal Clojure only stuff...too bad because it should not 😃 maybe open an issue in the project?
Mike is always super helpful
Thanks a lot for all the answers. Really helpful 🙂
Tubular is a socket REPL client. You need Joker to have socket REPL server support for IDE integration, don't you?
It does, joker --repl localhost:5555
My bad. I realise the comment was about middleware that would allow Cursive to talk to Joker. Makes more sense now :)
Also, I have not tested it, but Joker should work with inf-clojure mode in emacs: https://github.com/clojure-emacs/inf-clojure/pull/160