Description
An overlay is displayed through cider--display-interactive-eval-result
when a compilation error happens, but only when doing interactive evaluation.
(Note that that is the intended design, and fully makes sense: we use something named cider--display-interactive-eval-result)
However, from a user point of view, it is desirable to show this overlay under more use cases, which may not go under the cider-interactive-eval-handler
(the part responsible for calling cider--display-interactive-eval-result
)
cider-load-buffer(done)- cider-refresh
For both cases, besides from the display of an overlay, the jumping to the right line, as introduced in #3492 should also be offered. It might be more tricky for cider-refresh, since the cause of the error may reside in another file (possibly without a corresponding open buffer).