RobertARandolph / cider-rebl

Tips for using Cognitect REBL with CIDER
34 stars 1 forks source link

following instructions results in not being able to find the rebl class #1

Open drewverlee opened 1 year ago

drewverlee commented 1 year ago

Calling C-x C-r results in

Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:445). cognitect.rebl.

If i don't follow the library instructions, and use these main-opts :main-opts ["-m" "cognitect.rebl"] from the datomic page, then call clj -A:rebl, it will start

rebel is in my dir locals as you can see from the cider startup info dump

;; Connected to nREPL server - nrepl://localhost:39563
;; CIDER 1.7.0 (Côte d'Azur), nREPL 1.0.0
;; Clojure 1.11.1, Java 17.0.6
;;     Docs: (doc function-name)
;;           (find-doc part-of-name)
;;   Source: (source function-name)
;;  Javadoc: (javadoc java-object-or-class)
;;     Exit: <C-c C-q>
;;  Results: Stored in vars *1, *2, *3, an exception in *e;
;;  Startup: /usr/local/bin/clojure -J-Xmx20480m -Sdeps '{:deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.30.0"} refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[com.billpiel.sayid.nrepl-middleware/wrap-sayid,refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}}}' -M:dev:portal:spy:diff:clj-async:rebl:cider/nrepl
andyfry01 commented 1 month ago

Updating the following line in my :rebl alias fixed the issue for me:

com.cognitect/rebl          {:mvn/version "0.9.245"} 

The version number has to match the version of REBL that you downloaded from Cognitect dev-tools.