tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
tolitius 2020-07-12T16:33:03.359100Z

@richiardiandrea niice:

:repl {:extra-deps {nrepl {:mvn/version "0.7.0"}
		              cider/cider-nrepl {:mvn/version "0.22.4"}
		              com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
         :main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]" "-i" "-f" "rebel-readline.main/-main"]}
this works: connects to an editor, reloads recompilations in repl from editor, and also I can now even see some color as a positive side effect ) any differences you found between rebel-readline and REPL-y (that REPL-y does better)?

👍 1
2020-07-13T16:55:35.360500Z

When I used rebel-readline with a background process (Figwheel {:mode :serve} , http-kit, etc), the default rebel-readline/-main won't automatically end those processes if you quit with 'ctrl+d'. Looks like REPL-y does (shutdown-agents) when done, I haven't checked what nrepl.cmdline does with that specific case It's not a bug, just a difference (https://github.com/bhauman/rebel-readline/issues/141) In my case I decided to start both then just exit when done:

(figwheel.main.api/start {:mode :serve} "dev")
(rebel-readline.main/-main)
(System/exit 0)
I currently run this in a clj dev.clj, otherwise a namespace with a main method is the same

richiardiandrea 2020-07-12T17:27:55.359500Z

Not much, as I mentioned sometimes rebel's multi-line support has glitches but it was never bothering so much to even open an issue (I should). Nice thanks for sharing I do something similar myself.

tolitius 2020-07-12T17:34:09.359700Z

that's great, I am still mostly on boot due to little things like this in "deps.edn". but I am slowly moving over ) thanks a lot for a "rebel-readline" idea!

👍 1
richiardiandrea 2020-07-12T23:58:11.360100Z

my pleasure 😄