This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-14
Channels
- # announcements (2)
- # beginners (88)
- # calva (17)
- # cider (25)
- # cljdoc (22)
- # cljs-dev (10)
- # clojure (194)
- # clojure-italy (1)
- # clojure-nl (8)
- # clojurescript (24)
- # data-science (11)
- # datomic (1)
- # fulcro (6)
- # jobs (1)
- # leiningen (4)
- # nyc (1)
- # off-topic (70)
- # pedestal (6)
- # quil (4)
- # shadow-cljs (59)
- # vim (8)
@tsulej I think you need cider-pprint-eval-last-sexp-to-comment
(bound by default to, take a deep breath, C-c C-v C-f C-c C-e
... phew!)
(with-out-str (print "something\nanything"))
;; => something
;; anything
you can't avoid the mapping out to string
otherwise it just evals to nil
You may have tried cider-eval-defn-to-comment
which maintains the \n
characters but again the pprint
needs to be eval'ed to a string for this to work
There's no way I know of to get the results of out to a comment without wrapping out to convert it to a string using with-out-str
maybe I have some parameters set up. Cider used: [cider/cider-nrepl "0.21.2-SNAPSHOT"]
Odd I get the result above
What version of cider areu on
mines 0.18.0
still
or investigate changes: https://cider.readthedocs.io/en/latest/pretty_printing/