Function: cider-doctor--check-byte-compilation

cider-doctor--check-byte-compilation is a byte-compiled function defined in cider-doctor.el.

Signature

(cider-doctor--check-byte-compilation)

Documentation

Warn if CIDER's source files are newer than their byte-compiled output.

Stale .elc files lead to baffling behavior after an upgrade.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-doctor.el
(defun cider-doctor--check-byte-compilation ()
  "Warn if CIDER's source files are newer than their byte-compiled output.
Stale .elc files lead to baffling behavior after an upgrade."
  (if-let* ((el (locate-library "cider.el"))
            (elc (concat el "c")))
      (if (and (file-exists-p elc)
               (file-newer-than-file-p el elc))
          (cider-doctor--result 'warn "CIDER byte-compiled files are stale"
                                :detail "cider.el is newer than cider.elc."
                                :hint "Recompile CIDER (e.g. M-x byte-recompile-directory).")
        (cider-doctor--result 'ok "Byte-compiled files are up to date"))
    (cider-doctor--result 'info "Running from source (not byte-compiled)")))