Git Product home page Git Product logo

nrepl-rebl's Introduction

nrepl-rebl (alpha)

Clojars Project

nREPL middleware to send eval'd forms to REBL.

Usage

With Leiningen

  • Download REBL (note the license agreement)
  • Add the lein-localrepo plugin to your profiles.clj
  • Run lein localrepo install [path to rebl download]/REBL-0.9.108.jar com.cognitect/rebl 0.9.108
  • Merge this into your profiles.clj:
{:user 
  :dependencies [[nrepl-rebl "0.1.1"]
                 [com.cognitect/rebl "0.9.108"]]
  :repl-options {:nrepl-middleware [nrepl-rebl.core/wrap-rebl]}}
  • Open your repl as usual - a REBL window should open, and receive any forms you eval in the repl

With deps.edn

  • Download REBL (note the license agreement)
  • Merge the following into your deps.edn file:
{:aliases {:nrepl {:extra-deps {nrepl/nrepl {:mvn/version "0.5.0"}}}
           :rebl {:extra-deps {org.clojure/clojure {:mvn/version "1.10.0-RC4"}
                               nrepl-rebl {:mvn/version "0.1.1"}
                               com.cognitect/rebl {:local/root "[path to REBL]/REBL-0.9.108.jar"}}}}}
  • Run clj -A:nrepl:rebl -m nrepl.cmdline --middleware '[nrepl-rebl.core/wrap-rebl]' to start an nREPL server
  • Connect to the nREPL server from a client of your choice (Cursive, CIDER, etc.)

License

Distributed under the GPL V3 License

nrepl-rebl's People

Contributors

davewm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

emmanueloga

nrepl-rebl's Issues

REBL not capturing the forms from REPL

Looks like the REBL isn't being fed properly from the REPL. When I evaluate a map (e.g. {:hi "there"}, the REBL gets the text output instead of the map itself, so I can't navigate through it. It works if I evaluate the map inside the REBL though. Seems like it is only getting what is printed by the REPL and not getting the value itself.

Unable to resolve var: nrepl-rebl.core/wrap-rebl

I'm able to get a repl to run with REBL using clj with the instructions in the README under the 'With deps.edn' section, however, I'd like to get it to run through lein also. I've made multiple versions of my ~/.lein/profile.clj file but no luck. When I run 'lein repl' I'm getting:

Error loading nrepl-rebl.core: java.lang.ExceptionInInitializerError, compiling:(nrepl_rebl/core.clj:1:1)
Exception in thread "Thread-1" java.lang.RuntimeException: Unable to resolve var: nrepl-rebl.core/wrap-rebl in this context, compiling:(NO_SOURCE_PATH:0:0)
...

Here are the content of my profile.clj file:

{:user  {
  :dependencies [[nrepl-rebl "0.1.1"]
                 [com.cognitect/rebl "0.9.109"]]
  :repl-options {:nrepl-middleware [nrepl-rebl.core/wrap-rebl]}}}

The README refers to rebl version 0.9.108. Is it possible that nrepl-rebl is not compatible with rebl version 0.9.109?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.