Closed
Description
I updated my spacemacs and started seeing a crash when doing cider-jack-in. I spied the command line from Messages which reproduces it in the shell:
$ lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.2.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.12.0\"\] -- repl :headless
Error loading refactor-nrepl.middleware: java.lang.ClassNotFoundException: sun.misc.Launcher, compiling:(mranderson047/alembic/v0v3v2/dynapath/v0v2v3/dynapath/defaults.clj:29:3)
Error loading cider.nrepl.middleware.debug: java.lang.ClassNotFoundException: sun.misc.Launcher, compiling:(dynapath/defaults.clj:29:3)
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: refactor-nrepl.middleware/wrap-refactor in this context, compiling:(/tmp/form-init8653453591385438183.clj:1:8598)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6875)
at clojure.lang.Compiler.analyze(Compiler.java:6669)
at clojure.lang.Compiler.analyze(Compiler.java:6625)
[...]
Environment & Version information
This was in a pretty barebones lxc container running Ubuntu 16.04. The
error went away by downgrading to openjdk-8.
I'm not sure if all is now working, I still get this error in Messages: "error in process filter: run-hooks: Symbol's function definition is void: live-nrepl-set-print-length" but this seems unrelated to
refactor-nrepl
clj-refactor.el and refactor-nrepl version information
evident here in the reproducer commandline:
$ lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.2.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.12.0\"\] -- repl :headless
nREPL server started on port 36362 on host 127.0.0.1 - nrepl://127.0.0.1:36362
changing refactor-nrepl to 2.3.0-SNAPSHOT above didn't make a difference
clj-version says "clj-refactor 2.2.0, refactor-nrepl 2.2.0"
CIDER version information
;; CIDER 0.12.0 (Seattle), nREPL 0.2.12
;; Clojure 1.8.0, Java 1.8.0_91
Leiningen or Boot version
Leiningen 1.7.0
Emacs version
24.5+1-6ubuntu1
Operating system
Ubuntu 16.04 64-bit
Metadata
Metadata
Assignees
Labels
No labels