Fork me on GitHub
#vim
<
2018-12-17
>
Hukka07:12:22

Very often I have the problem that cpp in fireplace doesn't pretty print. I suppose this is because it's not running a real nrepl, but I do have the repl open, so it should. How should I diagnose the problem?

Hukka07:12:12

cider.nrepl.middleware.pprint/fipp-pprint is available in the repl (evaluates to a function), so the middleware should be loaded too (and it works fine in the repl itself)

dominicm09:12:46

What cider version?

Hukka06:12:36

[cider/cider-nrepl "0.18.0"]

dominicm06:12:35

Hmm, I wondered if it was the buggy version of cider which had unreliable printing

dominicm06:12:26

I don't suppose you have other middleware?

Hukka07:12:06

My whole profile is

{:user {:plugins [;; ultra pretty prints stacktraces
                  [venantius/ultra "0.5.2"]
                  ;; refactor-nrepl is used by clj-refctor.nvim
                  ;; 2.4.0-SNAPSHOT is required for compatibility with cider/cider-nrepl 0.17
                  [refactor-nrepl "2.4.0-SNAPSHOT"]
                  [cider/cider-nrepl "0.18.0"]
                  ;; eastwood is a linter
                  [jonase/eastwood "0.2.6"]
                  ;; ancient checks for outdated deps
                  [lein-ancient "0.6.15"]
                  [lein-voom "0.1.0-20180617_140646-g0ba7ec8"]]}}

Hukka07:12:20

If you suspect they might be causing problems, I can try just the cider-nrepl

dominicm08:12:03

Ultra might be a problem

Hukka12:12:01

Yes, disabling ultra makes pprint work in fireplace again

Hukka12:12:11

Weird that it sometimes worked, and that it works always in lein repl

Hukka12:12:18

Thanks for the tip!