Fork me on GitHub
#cider
<
2023-08-14
>
igrishaev13:08:08

Has anyone ever had an issue with Cider + SSH/Tramp + Jar files? I'm connected to a remove machine via REPL, and I can browse the files in Emacs with dired/sshx. But when I'm trying to jump into a jar file (e.g. cider-find-ns), Emacs says "search has failed". There is an issue I've created a moment ago: https://github.com/clojure-emacs/cider/issues/3409

👀 2
Zachary20:08:42

I’m trying to do a cider-connect to an nrepl started from my project directory with these configurations: {:extra-deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.31.0"}} :main-opts ["--main" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]" "--interactive"]} I’m getting an error: Debugger entered--Lisp error: (wrong-type-argument stringp ("<my-proj-dir>" "62772")) directory-file-name(("<my-proj-dir>" "62772")) (file-name-nondirectory (directory-file-name (car x))) (list (file-name-nondirectory (directory-file-name (car x))) (nth 1 x)) (closure (t) (x) (list (file-name-nondirectory (directory-file-name (car x))) (nth 1 x)))((("<my-proj-dir>" "62772"))) mapcar((closure (t) (x) (list (file-name-nondirectory (directory-file-name (car x))) (nth 1 x))) ((("<my-proj-dir>" "62772")) ("<my-proj-dir>" "62772"))) (seq-uniq (mapcar #'(lambda (x) (list (file-name-nondirectory (directory-file-name (car x))) (nth 1 x))) (delq nil pairs))) (let* ((pairs (cider--running-nrepl-paths)) (pairs (let* ((c (and t (and dir ...)))) (if c (cons (cider--path->path-port-pairs c) pairs) pairs)))) (seq-uniq (mapcar #'(lambda (x) (list (file-name-nondirectory (directory-file-name ...)) (nth 1 x))) (delq nil pairs)))) cider-locate-running-nrepl-ports("<my-proj-dir>")

vemv21:08:15

Fixed on master yesterday, try updating CIDER again?

👍 2
Zachary22:08:56

Can confirm, it’s fixed!! 🙂

vemv22:08:59

Cheers 🍻