Function: cider--ensure-request-op-supported
cider--ensure-request-op-supported is a byte-compiled function defined
in cider-client.el.
Signature
(cider--ensure-request-op-supported REQUEST CONNECTION)
Documentation
Signal a user-error when REQUEST's op isn't supported by CONNECTION.
Only namespaced middleware ops (those containing a "/", e.g.
"cider/apropos") are checked; core nREPL ops pass through. Does nothing
when cider--skip-op-ensure is non-nil.
This is the central enforcement that lets interactive commands omit explicit
cider-ensure-op-supported calls: every CIDER-level send routes through
cider--resolve-op-in-request, so an unsupported op fails uniformly with a
clear message no matter which command sent it.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(defun cider--ensure-request-op-supported (request connection)
"Signal a `user-error' when REQUEST's op isn't supported by CONNECTION.
Only namespaced middleware ops (those containing a \"/\", e.g.
\"cider/apropos\") are checked; core nREPL ops pass through. Does nothing
when `cider--skip-op-ensure' is non-nil.
This is the central enforcement that lets interactive commands omit explicit
`cider-ensure-op-supported' calls: every CIDER-level send routes through
`cider--resolve-op-in-request', so an unsupported op fails uniformly with a
clear message no matter which command sent it."
(let ((op (cider-plist-get request "op")))
(when (and op
(not cider--skip-op-ensure)
(string-search "/" op)
(not (cider-nrepl-op-supported-p op connection 'skip-ensure)))
(user-error "`%s' requires the nREPL op \"%s\" (provided by cider-nrepl)"
(or this-command "This request") op))))