nrepl

aiba 2024-02-25T14:09:17.166179Z

I'm trying to debug why on emacs+cider+nrepl+shadow-cljs repl, evaluating a clojure expression whose result contains any tagged literal, somehow this prevents the result from being pretty-printed. (For example, evaluating {:a 1} pretty prints fine, but evaluating {:a #js {}} does not pretty-print. Can anyone help point me to where to start to look into this? I don't even know if this is an emacs, cider, nrepl, or shadow issue. Presumably pretty-printing is not happening in elisp, so it's either cider, nrepl, or shadow-cljs? I'm guessing somewhere there is code that does something very different based on whether the repl eval result contains a tagged literal, but I don't know how to find that code.

aiba 2024-02-25T14:44:56.899819Z

Update: pretty sure I tracked it down to a shadow-cljs issue. Will discuss in #shadow-cljs

pez 2024-02-25T16:20:09.961409Z

I think it may be that clojure.pprint/pprint doesn’t pretty print unknown tagged stuff.

aiba 2024-02-26T03:23:18.736509Z

This was the issue for those who are curious: https://github.com/thheller/shadow-cljs/pull/1174

1
🎉 1
dominicm 2024-02-27T09:22:28.779779Z

Ooh I didn't realise this was a shadow problem. Thank you!