Fork me on GitHub
#nextjournal
<
2021-12-18
>
R.A. Porter20:12:35

I'm getting an error trying to generate a static page (one that works fine as a live notebook). 🧵

R.A. Porter20:12:51

Partial stack trace:

#error {
 :cause "class clojure.lang.Var$Unbound cannot be cast to class clojure.lang.MultiFn (clojure.lang.Var$Unbound and clojure.lang.MultiFn are in unnamed module of loader 'app')"
 :via
 [{:type java.lang.ClassCastException
   :message "class clojure.lang.Var$Unbound cannot be cast to class clojure.lang.MultiFn (clojure.lang.Var$Unbound and clojure.lang.MultiFn are in unnamed module of loader 'app')"
   :at [coyotesqrl.2021.day16$eval15448 invokeStatic "NO_SOURCE_FILE" -1]}]
 :trace
 [[coyotesqrl.2021.day16$eval15448 invokeStatic "NO_SOURCE_FILE" -1]
  [coyotesqrl.2021.day16$eval15448 invoke "NO_SOURCE_FILE" -1]
  [clojure.lang.Compiler eval "Compiler.java" 7181]
  [clojure.lang.Compiler eval "Compiler.java" 7136]
  [clojure.core$eval invokeStatic "core.clj" 3202]
  [clojure.core$eval invoke "core.clj" 3198]
  [nextjournal.clerk$read_PLUS_eval_cached$fn__13194 invoke "clerk.clj" 91]

R.A. Porter20:12:32

I had thought the issue might be that I have a multimethod in this notebook, but I tried a small sample with one and it had no problems. Here's a link to the source file that's failing: https://github.com/coyotesqrl/advent-of-code/blob/main/src/coyotesqrl/2021/day16.clj It's unlikely I'll have any time to try to narrow this down to a simple reproducible case for at least a few weeks.

mkvlr12:12:07

thanks for the report, I'll take a closer look tomorrow