Fork me on GitHub

Getting this error when trying to connect to a remote repl.

(fn STR PREDICATE ACTION)] nil edge:52446 nil t nil t helm-comp-read-get-candidates  helm-cr-default helm-pattern] 6]’ 
 (user-error \"No linked CIDER sessions\")")
Error running timer: (error "In 'cider-connect' source: '#[0 \\307\\300\\301\\305\\306\\304\\203\\303\\204
\\202\\310%\\311\\302\"\\207 [#[771 \\306\\300\\301G\\303%\\307!\\310=\\205\\311\\303\\312\"\\206\\313\\314A\\203%\\314\\241\\210\\205*\\315\\316!\\262\\317\\302\\205?\\320>\\205?\\302C\\321\\203R	G\\322V\\203R!\\202S\\304\\305#\"\\207 [((edge:52446 edge 52446)) nil edge:52446 (metadata) nil nil completion-all-completions last emacs completion-metadata-get display-sort-function #[257 \\300\\301\"\\207 [sort helm-generic-sort-fn] 4 

(fn CANDIDATES)] nil t copy-sequence append (helm helm-fuzzy) helm-completion-in-region--initial-filter 0 helm-completion-style helm-completion--sorting-done] 13 

(fn STR PREDICATE ACTION)] nil edge:52446 nil t nil t helm-comp-read-get-candidates  helm-cr-default helm-pattern] 6]' 
 (user-error \"No linked CIDER sessions\")")
ring any bells to someone?


i get the error when typing the port


after trying a random amount of times, it works


but then it starts happens again


@bozhidar Funnily enough, with the latest cider-nrepl I get a JVM crash.


Classpath conflict: cider/cider-nrepl version 0.23.0-20191105.175422-4 already loaded, ALSO loading version 0.23.0-20191230.114706-5
# A fatal error has been detected by the Java Runtime Environment:
#  SIGBUS (0xa) at pc=0x000000010d1b9e92, pid=73028, tid=0x0000000000006b0b
# JRE version: OpenJDK Runtime Environment (8.0_232-b09) (build 1.8.0_232-b09)
# Java VM: OpenJDK 64-Bit Server VM (25.232-b09 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libzip.dylib+0x2e92]  newEntry+0x154
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
# An error report file with more information is saved as:
# /Users/alex/projects/.../hs_err_pid73028.log
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.


@alexyakushev Hmm, that’s weird. Other than the small updates you made to Orchard there’s almost nothing new there. Just a couple of bumped deps if I recall correctly.


I also wonder where the classpath conflict might be coming from


It’s weird that the error says that you’ve got 2 versions of cider-nrepl at the same time. Could it be something to do with refactor-nrepl?


We recently cut a new snapshot release there as well, but I highly doubt its the culprit.


@bozhidar I've tried without refactor-nrepl and it is still like that.


It doesn't fail with tools.deps, only with Boot, so there's that


I guess this explains why no one else has reported this problem. 🙂

Felipe Marques16:12:09

Hello! I'm using spacemacs and recently, I have being seen the following error:

Error building classpath. Could not transfer artifact refactor-nrepl:refactor-nrepl:jar:2.5.0-20191224.082108-5 from/to clojars (): Range Not Satisfiable (416)
The command being used to start the repl is: /usr/local/bin/clojure -A:dev -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} refactor-nrepl {:mvn/version "2.5.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.23.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"]' Setting cider-inject-dependencies to nil solved it. But it removes the refactor capabilities. When changing the version with universal argument, it works. Does any one have any idea how to solve this? Is there a way to specify the version of this packages for cider? Thanks!


Looks like the dependencies are taken from cider-jack-in-lein-plugins (which is odd given that clojure-cli is being used)


So you could set that directly in the project dir-locals, or modify it globally


(setf  (cadr (assoc "refactor-nrepl" cider-jack-in-lein-plugins))


For reference, I get the following command in Spacemacs develop branch when calling cider-jack-in in a dep.edn project.

[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.23.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
I updated in the last week or so, so its pretty recent. I did not enable clj-refactor in the Spacemacs Clojure layer, so not experiencing the same problems.


If you are on Spacemacs develop you can always disable clj-refactor to narrow down where the issue is coming from.