This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-09
Channels
- # beginners (121)
- # boot (28)
- # cider (106)
- # clara (57)
- # cljs-dev (70)
- # cljsrn (6)
- # clojure (145)
- # clojure-dev (7)
- # clojure-italy (36)
- # clojure-russia (42)
- # clojure-spec (26)
- # clojure-uk (127)
- # clojurescript (103)
- # core-async (10)
- # cursive (56)
- # datascript (66)
- # datomic (16)
- # defnpodcast (1)
- # emacs (18)
- # events (6)
- # figwheel (1)
- # jobs (1)
- # luminus (1)
- # lumo (44)
- # off-topic (58)
- # om (17)
- # onyx (2)
- # parinfer (75)
- # pedestal (4)
- # re-frame (18)
- # ring (4)
- # ring-swagger (8)
- # rum (7)
- # spacemacs (7)
- # specter (2)
- # sql (4)
- # unrepl (39)
- # untangled (17)
- # vim (3)
- # yada (21)
You can jump to source of function from a call site easy enough, but is there a 'find all call sites' of a function?
cljr-find-usages seems to be it, is that what you meant?
Thanks!
Is there any simple thing I'm missing that would explain why cider-pprint-eval-last-exp
prints in one long line to the repl. I'm using spacemacs....cider 0.15-SNAPSHOT
what are you trying to print @danieleneal
A nested map
comes out like this:
(defun cider--pretty-print-width ()
"Return the width to use for pretty-printing."
(or cider-repl-pretty-print-width
fill-column
80))
#("fill-column is a variable defined in ‘C source code’.
Its value is 80
Original value was 70
#("cider-repl-pretty-print-width is a variable defined in ‘cider-repl.el’.
Its value is nil
in that defun, there's a form (cider--nrepl-pprint-request-plist (cider--pretty-print-width))
mm mine is exactly the same
well let me see if it works for me. i was assuming it does since the repl pprinting does, but i haven't actually checked
ah cool thanks!
it's my favourite way of looking at a form C-c C-p
bang boom there it is
can you C-c C-p
this form? (into {} (map (fn [k v] [k v]) (range 0 13) (range 0 13)))
mm that was printed on one line for me. How strange
nah just clj
I'm just restarting spacemacs
mm still the same
haha sadly not at all I can just about manage to set a variable in emacs but that's about it
can you go to the results buffer where you expect it to be pretty printed and tell me the value of fill-column
there?
hypothesis is that when you're getting that popup buffer, its value is either nil or really large
hmmm fill column still 70 in that buffer
80 sorry
examples.exploring> (into {} (map (fn [k v] [k v]) (range 0 13) (range 0 13)))
{0 0, 7 7, 1 1, 4 4, 6 6, 3 3, 12 12, 2 2, 11 11, 9 9, 5 5, 10 10, 8 8}
examples.exploring> (into {} (map (fn [k v] [k v]) (range 0 13) (range 0 13)))
{0 0,
7 7,
1 1,
4 4,
6 6,
3 3,
12 12,
2 2,
11 11,
9 9,
5 5,
10 10,
8 8}
ahh it has no effect even there
haha sorry this is just the name of my current clojure project using as a scratchpad, I've noticed this in all my projects
when you jack-in, do you get a warning that cider and cider-nrepl versions don't match?
just jacking out
so I can jack in again
hmm no messages like that
thanks for your help by the way, I think I've used up my quota of free assistance by now 🙂
if you have any thoughts about what it could be that would be cool
but no pressure
I'll have a quick go
oh weird, cider-jack-in is opening up a clojure 1.9.0-alpha16 project even though project is 1.8.0
I had [venantius/ultra "0.5.1"]
in my plugins
I've taken that out
and it works
It was that mismatched clojure version that indicated something weird was going on there
Thanks so much
I guess so
I commented it out, jacked in again and the clojure version matched and it started working
will just try
yeah it works with 1.9 too
haha "STEP ASIDE LIBRARY I SHALL TAKE CARE OF THE PRETTY PRINTING HERE"
cool, thanks again, so glad to have that sorted, it was one of those little things that was a daily irritation but not big enough to look into
thanks!