Fork me on GitHub
#cider
<
2019-12-30
>
jmayaalv10:12:14

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?

jmayaalv10:12:30

i get the error when typing the port

jmayaalv10:12:01

after trying a random amount of times, it works

jmayaalv10:12:20

but then it starts happens again

alexyakushev13:12:31

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

alexyakushev13:12:44

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.

bozhidar14:12:42

@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.

alexyakushev14:12:00

I also wonder where the classpath conflict might be coming from

bozhidar15:12:14

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?

bozhidar15:12:04

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

alexyakushev15:12:08

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

alexyakushev15:12:05

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

bozhidar10:12:26

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!

yuhan17:12:32

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

yuhan17:12:02

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

yuhan17:12:45

(setf  (cadr (assoc "refactor-nrepl" cider-jack-in-lein-plugins))
       "your.version.here")

practicalli-john18:12:43

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.

practicalli-john18:12:31

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