nextjournal

R.A. Porter 2021-12-18T20:13:35.268800Z

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

mkvlr 2021-12-19T12:05:07.270100Z

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

R.A. Porter 2021-12-18T20:13:51.268900Z

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. Porter 2021-12-18T20:16:32.269100Z

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.