Fork me on GitHub
#cider
<
2019-02-27
>
enn15:02:00

I'm struggling to understand this behavior (`cider-repl-use-pretty-printing` is true):

enn15:02:44

clojure.pprint/pprint prints those values very differently. I understand CIDER is using a different pretty-printer now (not sure which one?). But it seems very strange for any pretty printer to print maps and strings indistinguishably.

dpsutton15:02:28

i can't reproduce

dpsutton15:02:44

can you verify that this doesn't happen for you if you (setq cider-repl-use-pretty-printing nil)

dpsutton16:02:15

also do (type *1) and make sure it actually is a string?

enn17:02:21

@dpsutton I can confirm it's a string

enn17:02:36

testing w/nil pretty printing now

cider 1
enn17:02:07

w/nil pretty printing it works as expected:

dpsutton17:02:40

did you set a specific pretty printer?

dpsutton17:02:49

i'm using the default and not seeing it. also which cider version?

enn17:02:39

Cider 0.19.0. I believe I am using the default. cider-pprint-fn is pprint.

richiardiandrea19:02:14

hello! trying to debug an error in my tests in cider-nrepl

richiardiandrea19:02:37

the message I receive is significant, but unfortunately I do not see the stacktace

richiardiandrea19:02:06

it is of course wrapped in an nrepl message so I wonder if there is a way to attach the stacktrace of errors as well?

richiardiandrea19:02:22

I see

Message: {:id 2, :msg "clojure.lang.Symbol cannot be cast to clojure.lang.Namespace", :session "fa2fd41b-7660-472e-874c-a7c6eebf6254", :status ["notification"], :type "error"}

richiardiandrea19:02:55

(new to nrepl debugging 😄)

richiardiandrea19:02:11

ok I might have found a hack

(catch Exception e
        (let [stack-str (clojure.string/join "\n" (.getStackTrace e))] 
          (notify-client @debugger-message stack-str #_ (.getMessage e) :error))
        false)
my problem specifically is in cider.nrepl.middleware.debug