Function: cider-locate-running-nrepl-ports
cider-locate-running-nrepl-ports is a byte-compiled function defined
in cider.el.
Signature
(cider-locate-running-nrepl-ports &optional DIR)
Documentation
Locate ports of running nREPL servers.
When DIR is non-nil also look for nREPL port files in DIR. Return a list of list of the form (project-dir port).
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
(defun cider-locate-running-nrepl-ports (&optional dir)
"Locate ports of running nREPL servers.
When DIR is non-nil also look for nREPL port files in DIR. Return a list
of list of the form (project-dir port)."
(let* ((pairs (cider--running-nrepl-paths))
(pairs (if-let (c (and dir (clojure-project-dir dir)))
(append (cider--path->path-port-pairs c) pairs)
pairs)))
(thread-last pairs
(delq nil)
(mapcar (lambda (x)
(list (file-name-nondirectory (directory-file-name (car x)))
(nth 1 x))))
(seq-uniq))))