Closed TomLisankie closed 5 years ago
Do you have some extra nREPL middleware in your profiles? Seems that you've got something depending on the pr-values middleware that was removed in nREPL 0.6.
As far as I know, no. I just installed Emacs and Cider on an Ubuntu machine I have and I’m having the same problem.
How would I go about checking the nREPL middleware?
On Sat, Mar 30, 2019 at 5:37 PM Bozhidar Batsov notifications@github.com wrote:
Do you have some extra nREPL middleware in your profiles? Seems that you've got something depending on the pr-values middleware that was removed in nREPL 0.6.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/clojure-emacs/cider/issues/2619#issuecomment-478291376, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFp7hey4af2TPAPnnWyPlKcWOYELdlXks5vb9j8gaJpZM4cT7fr .
I'm getting the exact same problem on Windows 10. Cider version: cider-2019.1924/ First few lines of the error message: [nREPL] Starting server via "c:/bin/lein.bat" update-in :dependencies conj ^"[nrepl \^"0.6.0\^"]^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.22.0-SNAPSHOT\^"]^" -- repl :headless :host localhost... error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: clojure.lang.Compiler$CompilerException: Syntax error compiling at (cider/nrepl.clj:1:1).
at clojure.lang.Compiler.load (Compiler.java:7647) clojure.lang.RT.loadResourceScript (RT.java:381) clojure.lang.RT.loadResourceScript (RT.java:372) clojure.lang.RT.load (RT.java:463) clojure.lang.RT.load (RT.java:428) clojure.core$load$fn__6824.invoke (core.clj:6126) clojure.core$load.invokeStatic (core.clj:6125) clojure.core$load.doInvoke (core.clj:6109) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.core$load_one.invokeStatic (core.clj:5908) clojure.core$load_one.invoke (core.clj:5903)
Good to know I’m not going crazy.
I'm getting a similar issue
error in process sentinel: Could not start nREPL server: WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval1836$fn__1837 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval1836$fn__1837
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval2671$fn__2672 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval2671$fn__2672
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Error loading cider.nrepl: Syntax error compiling at (cider/nrepl.clj:1:1).
Exception in thread "main" Syntax error compiling var at (/private/var/folders/26/x95n84ys3mn1yjh0_kw5wzjr0000gn/T/form-init15293197070489970724.clj:1:9211).
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7114)
at clojure.lang.Compiler.analyze(Compiler.java:6789)
at clojure.lang.Compiler.analyze(Compiler.java:6745)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
at clojure.lang.Compiler.analyze(Compiler.java:6789)
at clojure.lang.Compiler.analyze(Compiler.java:6745)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
at clojure.lang.Compiler.analyze(Compiler.java:6789)
at clojure.lang.Compiler.access$300(Compiler.java:38)
at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6384)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
at clojure.lang.Compiler.analyze(Compiler.java:6789)
at clojure.lang.Compiler.analyze(Compiler.java:6745)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:6120)
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5467)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:4029)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7104)
at clojure.lang.Compiler.analyze(Compiler.java:6789)
at clojure.lang.Compiler.eval(Compiler.java:7173)
at clojure.lang.Compiler.eval(Compiler.java:7166)
at clojure.lang.Compiler.eval(Compiler.java:7166)
at clojure.lang.Compiler.load(Compiler.java:7635)
at clojure.lang.Compiler.loadFile(Compiler.java:7573)
at clojure.main$load_script.invokeStatic(main.clj:452)
at clojure.main$init_opt.invokeStatic(main.clj:454)
at clojure.main$init_opt.invoke(main.clj:454)
at clojure.main$initialize.invokeStatic(main.clj:485)
at clojure.main$null_opt.invokeStatic(main.clj:519)
at clojure.main$null_opt.invoke(main.clj:516)
at clojure.main$main.invokeStatic(main.clj:598)
at clojure.main$main.doInvoke(main.clj:561)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve var: cider.nrepl/wrap-apropos in this context
at clojure.lang.Util.runtimeException(Util.java:221)
at clojure.lang.Compiler$TheVarExpr$Parser.parse(Compiler.java:720)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
... 35 more
Subprocess failed
Something seems to be wrong with the latest snapshot, but I'm puzzled what exactly. I think you can workaround this by putting this in your init.el:
(setq cider-latest-middleware-version "0.21.2-SNAPSHOT")
This was the first snapshot I pushed using the new MrAnderson 0.5, so I wonder if that might be the problem. I'll investigate when I can. //cc @benedekfazekas
Something seems to be wrong with the latest snapshot, but I'm puzzled what exactly. I think you can workaround this by putting this in your init.el:
(setq cider-latest-middleware-version "0.21.2-SNAPSHOT")
I've tried adding this to both dotspacemacs/init
and dotspacemacs/user-init
in my .spacemacs file and couldn't get it to work (I'm not very good with [Spac]Emacs, so maybe I'm doing something incredibly stupid), but changing my ~/.lein/profiles.clj
to {:user {:plugins [[cider/cider-nrepl "0.21.2-SNAPSHOT"]]}}
fixed it. Thanks!
FelipeCortez's temp fix works. Thanks.
this may be MrAnderson related but don't quite understand how. This is the ns macro of cider.nrepl
from the jar from clojars
(ns cider.nrepl
(:require
[cider.nrepl.version :as version]
[cider.nrepl.middleware.util.cljs :as cljs]
[cider.nrepl.middleware.pprint :as pprint]
[cider.nrepl.print-method]
[nrepl.middleware :refer [set-descriptor!]]
[nrepl.middleware.session :refer [session]]
[nrepl.middleware.pr-values :refer [pr-values]]
[nrepl.server :as nrepl-server]))
this is not what i see in git. how was this snapshot jar built I wonder.
@benedekfazekas Yeah, that's exactly what I saw as well. I built the jar simply by running make deploy
. No idea how this would go back to an older version of the code.
I guess you can run make install
locally to test this further.
Upgraded to CIDER 0.22.0snapshot (package: 20190331.2014) on Windows 10 and it seems to work fine.
That's fixed. The reason for the problem was a bad cider-nrepl
build.
That's fixed. The reason for the problem was a bad
cider-nrepl
build.
Thank you!
I'm still encountering this issue. I upgraded CIDER to the latest version. I deleted everything in my Ivy cache. I commented out everything in ~/.lein/profiles.clj
and ~/.clojure/deps.edn
, hit M-x describe-variable
to confirm that cider-latest-middleware-version
is 0.22.0-SNAPSHOT
, and still a clean lein project with no dependencies throws a similar stacktrace when I try M-x cider-jack-in
.
Here's the stacktrace:
The installed version of CIDER is 20190419.1025. Is there more I need to do to ensure a clean load of CIDER?
@respatialized You're actually experiencing a brand new issue - see https://github.com/clojure-emacs/orchard/issues/50
Expected behavior
I'm experiencing an issue where the nREPL will not start and seems to crash when invoked via
cider-jack-in
. I expect it to start an nREPL for me for the project I'm in.Actual behavior
But instead it gives me the following giant trace:
Steps to reproduce the problem
Go into a Leiningen project and try and do
M-x cider-jack-in
Environment & Version information
CIDER version information
Lein/Boot version
Emacs version
Operating system
macOS Mojave 10.14.4