Fork me on GitHub
#cursive
<
2022-10-25
>
dvingo18:10:00

anyone have tips for setting *print-namespace-maps* to false for all REPLS? (clj and cljs)

onetom03:10:42

i was trying put the following into my src/user.clj:

(alter-var-root #'*print-namespace-maps* (constantly false))
(prn {:asd/qwe 123 :asd/zxc 456})
and when i start a cursive local repl, it indeed just prints {:asd/qwe 123 :asd/zxc 456}, BUT 1. if i comment out the alter-var-root, it still prints the same 2. when eval the prn form manually, it prints the undesired #:asd{:qwe 123, :zxc 456}, regardless of whether the alter-var-root is commented out or not i haven't tried this in an isolated project yet, though, so i might have some interference from other libraries.

dvingo15:10:10

thanks I'll try that out as well. I know how to affect printing maps by binding the var, but the output in the REPL pane is still using namespace maps 😞