Skip to content

cider-show-error-buffer/cider-auto-jump-to-error: honor :clojure.error/phase #3418

Closed
@vemv

Description

@vemv

See also: #3338

cider-show-error-buffer and cider-auto-jump-to-error are customizable, but their semantics are a little too coarse-grained: one may not necessarily 'always or 'never want them to work.

A commonly desirable thing would be that one is presented detailed error reports on application-level exceptions. Compile-time exceptions would not deserve them, by default.

Therefore, we could make those two defcustoms have default value of lambda (exception-phase), and have the appropiate logic there.


NOTE: this GH issue is only concerned with not presenting stacktrace buffers when it's not particularly helpful.

Presenting a friendly, non-stacktrace-centric error report (e.g., turn clojure.core.specs.alpha/even-number-of-forms? into a pretty string / UI) would be done separately.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions