Fork me on GitHub
#cider
<
2017-05-02
>
ccann19:05:36

isn’t cider supposed to pretty print with C-c C-p?

dpsutton19:05:28

that's bound to cider-repl-previous-prompt

ccann19:05:46

whatever cider-pprint-eval-last-expression is bound to

dpsutton19:05:47

there's a function cider-repl-toggle-prettyprinting

ccann19:05:14

yeah I actually have that cider-repl-use-pretty-printing set to t

ccann19:05:26

which I assume is the same

dpsutton19:05:37

ah i see. didn't know about that eval command

ccann19:05:32

whenever I use a cider-pprint function the cider-result buffer isn’t actually pprinted. when I explicitly call clojure.pprint/pprint though, it is

dpsutton19:05:41

nice. i'll start to use that.

dpsutton19:05:12

i've seen in the guts it allows for optional pprinters, defaulting to fipp, i think

dpsutton19:05:07

you could expand this eval map to have a keybinding for this

ccann19:05:18

C-c C-p runs the command cider-pprint-eval-last-sexp in my config. I haven’t changed anything

dpsutton19:05:54

ah i misunderstood. i thought it changed underneath you and you were missing it.

ccann19:05:08

ah no sorry, it’s just not actually pretty

dpsutton19:05:49

the pretty printer obeys a certain width i think. An example is that a map will go across the same line until it hits the pretty printing width

dpsutton19:05:59

do you think this could be a cause of it not being pretty?

ccann19:05:45

that doesn’t seem to be bound, and setting it doesn’t seem to affect the cider-result buffer, but thanks for looking

ccann19:05:00

I upgraded from the stable releases of clojure and cider to the melpa ones and it’s working now…

dpsutton19:05:28

well good. i think that patch i sent you is 0.15-snapshot, so hopefully it's fixed

ccann19:05:38

this is SO MUCH BETTER :-))))

dpsutton19:05:54

spectacular. glad its working

dpsutton19:05:08

it's been a while since a release so there's lots of bug fixes accumulating

oskarkv19:05:15

7 months I think 😛

dpsutton19:05:47

are there any conferences coming up? I think bbatsov likes to release at meetups or conjs

oskarkv19:05:41

hehe I don't know

bozhidar20:05:02

maybe 0.15 will be released for EuroClojure 😉

bozhidar20:05:09

time will tell

bozhidar20:05:35

Just noticed this online - newcomers to CIDER would probably find it pretty useful.

dpsutton20:05:28

it'll be confusing if you have two Berlin releases in a row. Perhaps you could take a vacation?

bozhidar21:05:35

0.15 is London 😉

oskarkv21:05:02

I'm a newcomer 😮

richiardiandrea22:05:48

@bozhidar the inf-clojure little brother should have some epic release moment as well.... 😄

richiardiandrea22:05:38

is there in cider something akin to inf-clojure-eval-form-and-next

macrobartfast23:05:25

what's a good strategy for pulling in dependencies in cider... I cider-jack-in but adding a dep to project.clj requires a restart, which takes 10-15 seconds on my machine... is that longer than normal? how can I speed it up? is there another strategy for this?