@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)?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 sameNot 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.
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!
my pleasure 😄