This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-18
Channels
- # announcements (35)
- # babashka (31)
- # beginners (77)
- # biff (23)
- # calva (1)
- # clj-kondo (4)
- # cljsrn (3)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (51)
- # clojure-france (3)
- # clojure-germany (1)
- # clojure-nl (3)
- # clojure-spec (9)
- # clojure-uk (42)
- # clojurescript (24)
- # clojureverse-ops (3)
- # component (16)
- # cursive (1)
- # data-science (8)
- # emacs (1)
- # fulcro (5)
- # graalvm-mobile (1)
- # graphql (2)
- # honeysql (36)
- # leiningen (3)
- # malli (3)
- # off-topic (16)
- # remote-jobs (1)
- # sql (3)
- # testing (19)
- # tools-deps (11)
- # xtdb (20)
mawning
morning
Happy rainy Friday 🙂
Morning 🙂
it's a fancy terminal for interactive input that does things like tab completion, colourised output, highlighting, history,
oh, nice - that sounds like i would use that - particularly multi-line editing
i've often got a terminal repl running alongside a CIDER session, 'cos i don't find multiple concurrent CIDER sessions that great an experience
I too have it running, but I'm working on a project that uses lein, so just seeing if anyone had it running. It does work, but it prevents nrepl from starting (not because of a bug or whatnot, but simply it doesn't understand how to)
did you figure it out @dharrigan? i'm repling on a server atm, and it would actually be really handy to have multi-line editing
I've decided to take the approach of maintaining my own deps.edn
and migrating the project.clj
to that 🙂 (keeping the existing lein configuration)
So, you could said I abandoned the attempt to get it to work with lein, instead, I'm using my proven way of deps.edn
oh well 😢 . i'd like to switch to deps.edn, but it's going to be so painful
@dharrigan I have all of that running on most of my projects, I don't believe it cases any conflicts...
❯ cat profiles.clj
{:user {:dependencies [[com.bhauman/rebel-readline "0.1.4"]]
:plugins [[cider/cider-nrepl "0.26.0"]]
:aliases {"rebel" ["trampoline" "run" "-m" "rebel-readline.main"]}}}
in your profiles.clj for lein, and you do this lein rebel
, no nrepl
server is started
Hmm, they coexist nicely in the same project. It's just normally I use rebel for the command line and nrepl for connecting to cursive. I do start up sessions with lein repl. Practicalli seems to be able to do it:
For a rich terminal REPL experience, start the REPL with rebel readline as well as nREPL and CIDER libraries.
clojure -M:repl/rebel-nrepl
From here:
(defn start-nrepl
[env-port]
(let [server-map (nrepl/start-server
:port (or env-port 0)
:handler (apply nrepl.server/default-handler
(-> (map #'cider.nrepl/resolve-or-fail cider.nrepl/cider-middleware)
(conj #'refactor-nrepl.middleware/wrap-refactor))))
port (:port server-map)
port-file (io/file ".nrepl-port")]
(.deleteOnExit port-file)
(spit port-file port)
(println (ansi/green (str "nREPL client can be connected to port " port)))))