Function: cider-doctor--check-middleware
cider-doctor--check-middleware is a byte-compiled function defined in
cider-doctor.el.
Signature
(cider-doctor--check-middleware)
Documentation
Check that cider-nrepl is present and version-compatible.
Reuses cider--compatible-middleware-version-p so the doctor and the
connection-time warning agree on what "compatible" means.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-doctor.el
(defun cider-doctor--check-middleware ()
"Check that cider-nrepl is present and version-compatible.
Reuses `cider--compatible-middleware-version-p' so the doctor and the
connection-time warning agree on what \"compatible\" means."
(let* ((info (nrepl-aux-info "cider-version" (cider-current-repl)))
(ver (and info (nrepl-dict-get info "version-string"))))
(cond
((null ver)
(cider-doctor--result 'error "cider-nrepl middleware not detected"
:detail "Most CIDER features need cider-nrepl; only bare nREPL was found."
:section "troubleshooting.html#cider-complains-of-the-cider-nrepl-version"))
((not (cider--compatible-middleware-version-p cider-required-middleware-version ver))
(cider-doctor--result 'warn (format "cider-nrepl %s may be incompatible" ver)
:detail (format "CIDER %s expects cider-nrepl %s."
(cider--version) cider-required-middleware-version)
:section "troubleshooting.html#cider-complains-of-the-cider-nrepl-version"))
(t (cider-doctor--result 'ok (format "cider-nrepl %s" ver))))))