Skip to content

Finer-grained opt-in to overlays #3522

@daveliepmann

Description

@daveliepmann

I'm thankful for CIDER 1.8.0's improved use of Clojure 1.10+ error reporting features. One way I'd like to leverage this change is to get short/non-stacktrace error messages as an overlay, without changing the behavior of 1. stacktrace/*cider-error*-opening errors or 2. normal evaluation.

That is, my dream scenario is:

  1. successful/uneventful form evaluation, e.g. (range 100) --> no overlay, see result in minibuffer
  2. early-phase error (reading, macroexpansion, compilation), e.g. :::5 or (def 5) --> error overlay
  3. late-phase error, e.g. (throw (ex-info "boom" {:a "a"})) --> open *cider-error* with stacktrace, no overlay

Because cider-use-overlays is coarse-grained, it seems 1 and 2 are currently incompatible. Would it be possible to get more fine-grained config here?

Cheers and thanks

(relevant clojurians thread)

Metadata

Metadata

Assignees

No one assigned

    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