luminus-framework/examples

cider-nrepl's bug or conflict?

temco opened this issue · 1 comments

temco commented

I follow the http://www.luminusweb.net/docs/guestbook.html and complete all the other examples (including the issue #7, thank yogthos), except for running "lein repl" under the sub-title "Running the Application", while running "lein run/test" is OK

Error loading cider.nrepl.middleware.test: Syntax error reading source at (cider/nrepl/middleware/test.clj:98:57).
Exception in thread "main" Syntax error compiling var at (/private/var/folders/nz/4jbpxw_158lg4jyvzxwg14km0000gn/T/form-init1033078542394300589.clj:1:6472).
...
Caused by: java.lang.RuntimeException: Unable to resolve var: cider.nrepl.middleware.test/wrap-test in this context

I googled it and found many errors caught in other occasions, such as cljs, etc. And when I add [cider/cider-nrepl "0.18.0"] to :dependencies, the error "cider.nrepl.middleware.test/wrap-test" is replaced with "cider.nrepl.middleware.apropos/wrap-apropos" ......

temco commented

I follow the http://www.luminusweb.net/docs/guestbook.html and complete all the other examples (including the issue #7, thank yogthos), except for running "lein repl" under the sub-title "Running the Application", while running "lein run/test" is OK

Error loading cider.nrepl.middleware.test: Syntax error reading source at (cider/nrepl/middleware/test.clj:98:57).
Exception in thread "main" Syntax error compiling var at (/private/var/folders/nz/4jbpxw_158lg4jyvzxwg14km0000gn/T/form-init1033078542394300589.clj:1:6472).
...
Caused by: java.lang.RuntimeException: Unable to resolve var: cider.nrepl.middleware.test/wrap-test in this context

I googled it and found many errors caught in other occasions, such as cljs, etc. And when I add [cider/cider-nrepl "0.18.0"] to :dependencies, the error "cider.nrepl.middleware.test/wrap-test" is replaced with "cider.nrepl.middleware.apropos/wrap-apropos" ......

sorry, I've found the answer, [cider/cider-nrepl "0.18.0"] should be added to :plugin in the project.clj of guestbook, i.e. :plugins [[lein-immutant "2.1.0"][cider/cider-nrepl "0.18.0"]], and then it works without errors.