Re:Try out Clojure libraries via rebel-readline
by koito17 on Thursday April 06, 2023 @02:00AM
(#35464702)
Can someone contrast this with the long existing lein-try or a setup like using Pomegranate with an injection in a Leiningen project so that you can add arbitrary dependencies to a live REPL?
Re:Try out Clojure libraries via rebel-readline
by eval on Thursday April 06, 2023 @05:42AM
(#35466242)
This is indeed the lein-try for tools-deps. Published libraries can be loaded but also github/gitlab/sourcehut-projects (as long as $project_root/deps.edn exists).
Rebel-readline (vendored and extended in this project) is essentially a tiny IDE as it provides syntax highlighting, formatting, code completion, docs, show source, show examples etc.
Re:Try out Clojure libraries via rebel-readline
by geokon on Friday April 07, 2023 @02:45AM
(#35478836)
The setup seems a bit convoluted. You can just launch a REPL with 'add-libs' (and whatever other dependency you want) and then add any libs/dependencies you wanna poke at at runtime
This isnt to be dismissive. It's still handy to have an alias that runs an 'add-libs' enabled REPL. And nice to have a shortcut to fetch the latest version of a lib from maven or GitHub
Rebel-readline (vendored and extended in this project) is essentially a tiny IDE as it provides syntax highlighting, formatting, code completion, docs, show source, show examples etc.
Working now, thanks. I love these kinds of sandbox development tools so this is very much appreciated.
This isnt to be dismissive. It's still handy to have an alias that runs an 'add-libs' enabled REPL. And nice to have a shortcut to fetch the latest version of a lib from maven or GitHub