DaveWM/nrepl-rebl

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

Opened this issue · 2 comments

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

@unthar It seems compatible with 0.9.109. After cloning this repo, I changed the version for com.cognitct/rebl in the dependencies of the project.clj to 0.9.109. Then ran lein uberjar and lein install. Finally added [nrepl-rebl "0.1.1"] to the dependencies in my profile. Now lein repl starts a REBL that is sort of connected to the REPL.

The above did not work at all. Same error message when trying to "upgrade" to REBL-0.9.218. Any other ideas?