This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-23
Channels
- # announcements (6)
- # beginners (54)
- # calva (9)
- # cider (2)
- # clj-kondo (26)
- # cljsrn (2)
- # clojure (49)
- # clojure-brasil (1)
- # clojure-dev (3)
- # clojure-europe (11)
- # clojure-italy (28)
- # clojure-nl (5)
- # clojure-serbia (1)
- # clojure-spec (4)
- # clojure-uk (182)
- # clojuredesign-podcast (2)
- # clojurescript (59)
- # clojurex (9)
- # cursive (26)
- # data-science (11)
- # datomic (40)
- # duct (1)
- # emacs (3)
- # events (4)
- # figwheel-main (2)
- # fulcro (7)
- # instaparse (1)
- # kaocha (2)
- # leiningen (25)
- # off-topic (3)
- # re-frame (36)
- # reagent (15)
- # shadow-cljs (87)
- # spacemacs (12)
- # sql (20)
- # tools-deps (8)
- # vim (1)
- # yada (40)
how do I get calva to print stuff out in Calva says
when I eval something with a println
? It's only showing return values ... I have to jump out of my file and execute in a repl to see the io
well, even if I use the Calva REPL, I can't see the output I expect:
main=>
(defn take-and-print [channel prefix]
(go-loop []
(println prefix ": " (<! channel))
(recur)))
main=>
(take-and-print subscriber-one "subscriber-one")
#object[clojure.core.async.impl.channels.ManyToManyChannel 0x2913b5fe "clojure.core.async.impl.channels.ManyToManyChannel@2913b5fe"]
main=>
(go (>! publisher {:topic :change-page :dest "/#home"}))
#object[clojure.core.async.impl.channels.ManyToManyChannel 0x908493a "clojure.core.async.impl.channels.ManyToManyChannel@908493a"]
so I'm expecting my REPL to flow in with println
s
if I'm in rebel-readline, I get:
user=> (go (>! publisher {:topic :account-created :username "billy"}))
#object[clojure.core.async.impl.channels.ManyToManyChannel 0x3a1e5fa7 "clojure.core.async.impl.channels.ManyToManyChannel@3a1e5fa7"]subscriber-one : {:topic :account-created, :username billy}
subscriber-two : {:topic :account-created, :username billy}
Is it this issue? https://github.com/BetterThanTomorrow/calva/issues/218
in calva
, if I (ns 'main)
it still prompts that I'm in user=>
even though: user=> *ns* ; => #namespace[main]
Is pretty printing still broken in the repl window? I see this instruction at the top of the repl window:
ctrl+enter: to submit the current line and pretty print the results
But when I do that it looks very unreadable (at least with a large map I'm working with). If I call clojure.pprint/pprint it looks good as usual. I noticed the command ctrl+alt+c, p
pretty prints correctly to the calva says window, however.I see this issue is closed https://github.com/BetterThanTomorrow/calva/issues/179, though.