rickmoynihan/nrebl.middleware

An nREPL and cider middleware for capturing and browsing data in REBL.


Keywords
clojure, nrepl
License
EPL-1.0

Documentation

nrebl.middleware

VERY ALPHA

The start of an nREPL middleware that will spy on an nREPL connection and capture the results of evaluation for browsing in REBL.

NOTE: REBL requires a commercial license if it's to be used for commercial work

Installation

Multiple setups should be possible. Here we describe one way using tools.deps.

  1. Install clojure
  2. Install REBL to a known path
  3. Setup your deps.edn
{:aliases {:nrepl {:extra-deps {nrepl/nrepl {:mvn/version "0.4.5"}}}
           :rebl {:extra-deps {
	                  org.clojure/clojure {:mvn/version "1.10.0-RC3"}
                      rickmoynihan/rebl.middleware {:git/url "https://github.com/rickmoynihan/dev.middleware", :sha "6f37f09fef0df14b855b443838f7dcc0ff6fd1d1"}
                      org.clojure/core.async {:mvn/version "0.4.490"}
     	              com.cognitect/rebl {:local/root "<PATH-TO-REBL-JAR>/REBL-0.9.108/REBL-0.9.108.jar"}}}
           :cider {,,,} ;; configure cider/nrepl deps here
           }}}}

Usage

clj -A:nrepl:cider:rebl -m nrepl.cmdline --middleware '[nrebl.middleware/wrap-nrebl cider.nrepl/cider-middleware]'

Then connect to your REPL, and run

(cognitect.rebl/ui)

You should now be able to evaluate forms and have REBL capture them.

Help Wanted

There's lots that can be done to improve this. Help & suggestions welcome.

License

Copyright © 2018 Rick Moynihan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.