Fork me on GitHub
#emacs
<
2021-02-03
>
Lu09:02:16

I’ve got a small problem only when using a cljs repl with cider. When I use cider-pprint-eval-last-sexp , I sometimes get the evaluated data structure in one line, which makes it very hard to read esp when dealing with a big one.. Do you guys know how to work around this?

solf11:02:27

Do you use shadow-cljs? If so, try setting nrepl-pprint to true: https://shadow-cljs.github.io/docs/UsersGuide.html#_repl_3

solf11:02:57

If you're not using shadow-cljs, then maybe this can point you to the right direction: https://github.com/nrepl/piggieback#pretty-printing

Lu12:02:21

thanks for the pointers!

practicalli-johnny22:02:10

Use the cider-inspect tool to view / navigate data structures

solf02:02:04

Does cider-inspect work for cjls? It throws an error in my last shadow-cljs project, I didn't push further as I thought it was just clojure-only

andrea.crotti09:02:43

it works for cljs for me

andrea.crotti09:02:55

we don't use shadow though, we use clj

Lu10:02:34

Yeah not working in shadow in my proj :)

practicalli-johnny23:02:48

Other alternatives are Portal and Reveal. Or raise an issue against cider (sorry, I don't have any specific ideas for this)

👌 3