hey 👋 we’re using unrepl at Nextjournal for our Clojure eval. Any recommendation how to make it play nice with notebooks where you want to show an error if an expression is incomplete?
we recently introduced reading on the clojure side to check it’s complete but now realised this breaks on namespaced keywords etc
It’s crude but: take your input (notebook cell) and send `(eval (read-string ~cell)) to unrepl thus the reading will occur on the other side
(ok it’s too crude: you have to take into account that the cell may contain multiple forms but you get the idea)
hehe
that’s a simpler workaround than what we could have thought of
is that what you do in IClojure as well?
thanks a lot! 🙏
yes https://github.com/HCADatalab/IClojure/blob/master/src/iclj/core.clj#L327-L334
do you also get line number info out in IClojure?
on exceptions? yes but the top frames of the exceptions are from the above wrapping
@cgrand thanks again, your solution works like a charm and is now deployed on http://nextjournal.com