Closed rmuslimov closed 6 years ago
The problem is pretty simple - for some reason nREPL 0.4 gets loaded for you before nREPL 0.2 (which your lein currently uses), this messes up the runtime nREPL version detection and creates all those warnings:
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-apropos, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-classpath, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-complete, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-debug, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-enlighten, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-format, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-info, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-inspect, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-macroexpand, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-slurp, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-ns, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-out, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-content-type, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-slurp, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-pprint, see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-pprint-fn, see clojure.tools.middleware/set-descriptor!```
(which breaks the middleware)
I'll assume you have some `user.clj` file that's affecting the order in which libraries are loaded, right? (as this issue sounds just like https://github.com/thheller/shadow-cljs/issues/360) What's currently happening is that some package loaded nREPL 0.4 as it's dependency, but Lein 2.8.1 started an incompatible nREPL 0.2 server and it can't find any middleware for that reason. You can either see what's affecting the load order or update the `lein` from master or use `lein-nrepl` (both of them are using nREPL 0.4).
Thanks for detecting root of my problem, it almost there. In system I had cider-system component which we using nrepl of previous version. Since I'm not using it anymore, removing that code solved the issue.
I'm trying to call
cider-jack-in
in my project which we working fine in cider v.0.15. However, currently I can understand what's going wrong with cider and why next error occurs.Here is my project.clj
Actual behaviour
I'm calling
cider-jack-in-clj
and nrepl starts with next errors, all repl actions stuck and doesn't work.If I go to nrepl buffer I can see there (I deleted all injected dependecies for clear test)
Expected behavior
All should works as expected, for example calling
lein repl
and refreshing-reloading code there works as suppossed to.Steps to reproduce the problem
Calling
cider-jack-in
falls with described exception.Environment & Version information
CIDER version information
Lein
Leiningen 2.8.1 on Java 1.8.0_152 Java HotSpot(TM) 64-Bit Server VM
Emacs version
GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.5.0, NS appkit-1561.40 Version 10.13.4 (Build 17E202)) of 2018-06-11
Operating system
OS X 10.13.6 "High Sierra"