clerk

seb231 2023-11-20T14:41:57.519619Z

Hello all. Getting an interesting exception when trying to show the result of a sexp while using clerk/page-size nil

(def foo "318") 

seb231 2023-11-20T14:41:59.703249Z

Unhandled clojure.lang.ExceptionInfo
   n must be a number?
   {:n nil, :xs "318"}

Andrea 2023-12-05T09:45:01.238879Z

@seb231 this is a bug, thanks for finding it out

👍 1
seb231 2023-12-05T10:08:18.657739Z

Would it be helpful if I raised this as an issue on Github @andrea712?

Andrea 2023-12-05T10:09:05.742509Z

I opened one right now, thanks. https://github.com/nextjournal/clerk/issues/584

👍 1
seb231 2023-11-20T14:42:57.717989Z

If the def is hidden or the view is explicitly stated there is no issue. And it is the same for any string in a def