Fork me on GitHub
#cider
<
2018-12-01
>
puzzler04:12:37

Anyone successfully use the new REBL with cider's repl yet?

Chris12:12:06

Not yet but hoping to try again later today. Got tripped up by needing JavaFX and my distro not providing it, which means using OracleJDK 😒

Chris14:12:35

I've made a little progress using REBL with cider, but would appreciate if someone with more experience could help me the rest of the way. First I downloaded REBL and created a dir with this deps.edn:

{:deps {org.clojure/clojure {:mvn/version "1.10.0-RC2"}
        org.clojure/core.async {:mvn/version "0.4.490"}
        com.cognitect/rebl {:local/root "REBL-0.9.108/REBL-0.9.108.jar"}}
I did cider-jack-in as usual, and could run the UI with (require '[cognitect.rebl :as rebl]) (rebl/ui). Unfortunately I can't get anything sent to REBL unless I wrap the expression with (rebl/inspect (+ 1 2)). But if I use REBL's "def as" to assign a result to foo I can access foo in the CIDER REPL. Feels like I'm close but missing something.

dpsutton17:12:58

i think it will be difficult because you rebl has its own main -m cognitect.rebl and i think nrepl does as well. there will need to be something that combines the two

👍 4
Chris18:12:13

Huh, that’s a shame.

rickmoynihan19:12:31

@dpsutton: don’t we just need a middleware to trigger a rebl/inspect on every :eval?