spacemacs

FlavaDave 2023-03-18T19:43:47.619309Z

For some reason, cider-pprint-evel-defun-at-point still prints, but doesn't print pretty anymore. Does anyone know what I can do to address this?

practicalli-johnny 2023-03-18T20:53:55.487839Z

for hash-maps I get pretty printed output, but a sequence containing a hash-map is printing it flat (very small code sample though) If example code can be shared I can give it a try

FlavaDave 2023-03-18T22:06:00.439939Z

I figured out what it was

FlavaDave 2023-03-18T22:06:58.366279Z

so when I so cider-jack-in-clj I get pretty printing just find. When I start a repl from terminal and do cider-connect-clj I lose pretty printing.

practicalli-johnny 2023-03-19T00:35:12.912359Z

The issue may be due to cider-nrepl middleware not being included when starting a repl in the terminal For Clojure CLI I use an alias as follows to include the cider-nrepl middleware (I assume Leiningen would include it as an alias - its been a while)

;; Interactive client REPL with nREPL server for Clojure Editor support
  :repl/basic
  {:extra-deps {nrepl/nrepl       {:mvn/version "1.0.0"}
                cider/cider-nrepl {:mvn/version "0.30.0"}}
   :main-opts  ["-m" "nrepl.cmdline"
                "--middleware" "[cider.nrepl/cider-middleware]"
                "--interactive"]}
Seems to work using the example on https://clojuredocs.org/clojure.pprint/pprint use the cider pprint command

FlavaDave 2023-03-19T03:18:57.698289Z

that makes sense! thanks