Fork me on GitHub
#clojure-uk
<
2019-05-05
>
dharrigan11:05:07

So, came across bhauman/rebel-readline last night. Pretty awesome repl

dharrigan11:05:41

However, it doesn't have an nrepl yet (to hook it up to vim etc..). But easily solved by including nrepl as a dep, then launching a server

dharrigan11:05:56

i.e., clojure -Sdeps "{:deps {com.bhauman/rebel-readline {:mvn/version \"0.1.4\"} nrepl {:mvn/version \"0.6.0\"}}}" -m rebel-readline.main

dharrigan11:05:16

then, (require '[nrepl.server :refer [start-server]) and (def server (start-server :port 7888))

dharrigan11:05:28

I really like the feel of rebel-readline

dominicm11:05:55

Edge has a script that combines them into a single command and loads x cider

dharrigan12:05:28

Yup, managed to do the same using edn.deps

dominicm12:05:42

Edge is deps too :) edge has a bit of a clever trick to it.

dominicm13:05:36

That is edge generally, yeah. In edge you just do ../bin/rebel --nrepl and it just works. You can also pass clj options like ../bin/rebel --nrepl -A:dev

dharrigan18:05:27

nice, will check itout, thanks for the tip! 🙂

dominicm19:05:38

@dharrigan I should probably note that I'm the primary maintainer of Edge :) But this is one of those things I've solved generally and think people should need to be constantly re-solving.

dharrigan19:05:49

Yup, I noticed, from the commit logs 🙂

dominicm19:05:04

I've just about taken the lead now:

~/src/github.com/juxt/edge master?                                   0.04 20:44:05
❯ git summary --line
 project  : edge
 lines    : 8380
 authors  :
    4722 Dominic Monroe   56.3%
    3459 Malcolm Sparks   41.3%
     102 lucio            1.2%
      81 Alex Davis       1.0%
      14 Maciej Łotysz    0.2%
       2 Randall Mason    0.0%
It's been close between me & @malcolmsparks for some time.

👍 4
dharrigan19:05:37

Well, found my first issue, perhaps I should ping you separately...

dominicm19:05:00

#juxt is a good place :) (although it will be me there too)