nextjournal / clerk

⚡️ Moldable Live Programming for Clojure
https://clerk.vision
ISC License
1.74k stars 75 forks source link

Viewer crashes trying to present exceptions with function values in their data #622

Closed zampino closed 5 months ago

zampino commented 5 months ago

Reproduces with

;; # 🐞
(ns scratch.debug
  (:require [nextjournal.clerk :as clerk]))

(ex-info "Boink 💥"
         {:foo 123 :boom (fn boom [x] x)}
         (RuntimeException. "no way"))

and web console reports known error: Invalid symbol: scratch.debug/eval112468/boom--112469.