DaveWM / nrepl-rebl

nREPL middleware to sync with REBL
GNU General Public License v3.0
11 stars 1 forks source link

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

Open unthar opened 5 years ago

unthar commented 5 years ago

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

tuh8888 commented 5 years ago

@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.

dotinspace commented 5 years ago

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