Function: cider-stacktrace-render-compile-error
cider-stacktrace-render-compile-error is a byte-compiled function
defined in cider-stacktrace.el.
Signature
(cider-stacktrace-render-compile-error BUFFER CAUSE)
Documentation
Emit into BUFFER the compile error CAUSE, and enable jumping to it.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-stacktrace.el
(defun cider-stacktrace-render-compile-error (buffer cause)
"Emit into BUFFER the compile error CAUSE, and enable jumping to it."
(with-current-buffer buffer
(nrepl-dbind-response cause (file path line column)
(let ((indent " ")
(message-face 'cider-stacktrace-error-message-face))
(insert indent)
(insert (propertize "Error compiling " 'font-lock-face message-face))
(insert-text-button path 'compile-error t
'file file 'line line 'column column 'follow-link t
'action (lambda (_button)
(cider-jump-to (cider-find-file file)
(cons line column)))
'help-echo (cider-stacktrace-tooltip
"Jump to the line that caused the error"))
(insert (propertize (format " at (%d:%d)" line column)
'font-lock-face message-face))))))