Description
Expected behavior
I have a machine that runs an nREPL server. I can reach the files in Emacs by running this:
(dired "/sshx:foobar@169.254.117.51:~/work/XXX")
I open deps.edn
file and perform cider-connet
to the remote port and then cider-ns-refresh
. Navigation by the files located in src
works great: I can jump to definitions with M-.
with ease. But when I try to open a namespace that comes from ~/.m2
, say clojure.core
, the following happens.
- Emacs hangs for a while transferring the file; I can see a message like:
Tramp: Checking ‘vc-registered’ for /sshx:user@169.254.117.51:/Users/foo/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar...done
- Then it shows a buffer titled
clojure-1.10.3.jar
with the following content:
M ... Filename
- ----- ---------------
- ----- ---------------
- Then it reports that the search has failed:
cond: Search failed: "clojure/core.clj$"
Actual behavior
I expected to see the actual clojure/core.clj file opened at the proper line. What's interesting here, I worked before I restarted Emacs (I've have had it running for a long time).
Steps to reproduce the problem
The second way to reproduce this is to run M-x cider-find-ns RET clojure.core RET
and get the same buffer and a message saying the search has failed.
Environment & Version information
CIDER version information
;; CIDER 1.7.0 (Côte d'Azur), nREPL 1.0.0
;; Clojure 1.10.3, Java 20.0.1
Lein / Clojure CLI version
Clojure 1.10.3
Clojure CLI version 1.11.1.1347
Emacs version
GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-05-11
Operating system
MacOS 12.3.1
JDK distribution
OpenJDK 20.0.1, no docker