This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-29
Channels
- # babashka (54)
- # beginners (24)
- # biff (23)
- # calva (14)
- # catalyst (4)
- # cider (20)
- # clj-kondo (17)
- # clojure (65)
- # clojure-europe (14)
- # clojure-norway (177)
- # clojure-uk (1)
- # clojurescript (11)
- # core-typed (4)
- # cursive (10)
- # datomic (39)
- # emacs (21)
- # gratitude (33)
- # honeysql (8)
- # hyperfiddle (57)
- # introduce-yourself (7)
- # jobs (5)
- # leiningen (17)
- # lsp (6)
- # meander (3)
- # missionary (5)
- # pathom (2)
- # polylith (4)
- # re-frame (7)
- # releases (2)
👋 I am having an issue in Calva, with output printed from a threads spawned in an evaluation not getting printed in the repl output. CIDER is doing the right thing, and I’d like to know how. • https://clojurians.slack.com/archives/C17JYSA3H/p1693209818386449#nrepl (among others) contain some of my observations so far https://clojurians.slack.com/archives/C17JYSA3H/p1693209818386449 • Calva issue tracking this: https://github.com/BetterThanTomorrow/calva/issues/2300 If some CIDER maintainer with knowledge about this could assist me, I’ll be forever grateful. 🙏
been a bit. but there’s an op called “out-subscribe” or “subscribe-out”. This installs a forking printer as the system out which forwards all output back over the nrepl transport. is calva sending that operation?
https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/out.clj#L69
https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/out.clj#L178
Thanks! Will have a look. We are not using this. When should it be sent? CIDER is not sending it as part of an evaluation, afaict from the nrepl message log.
Who-hoo! Success! Do you know if it should be done for all sessions? Or, do clones of the sessions inherit this?
Do you know if this is optional behaviour in CIDER? I’m an Emacs noob and get lost when trying to figure this out.
;; Redirect the nREPL's terminal output to a REPL buffer.
;; If we don't do this the server's output will end up
;; in the *nrepl-server* buffer.
(when (and cider-redirect-server-output-to-repl
(cider-nrepl-op-supported-p "out-subscribe"))
(cider--subscribe-repl-to-server-out))
kind of late to the party but I was trying #C03KZ3XT0CF for this kind of bugs, and figured out you can easily compare both cider and calva initializations from the messages POV. So this is Cider
while this is calva
so yeah, no out-subscribe on calva
This build of Calva fixes this: https://output.circle-artifacts.com/output/job/bdd60eab-29e7-4072-ba2d-3f4c2248160d/artifacts/0/tmp/artifacts/calva-2.0.388-2300-subscribe-stdout-5c1ed69b.vsix (Doesn’t have the opt-out yet, but next build will. 😃 )
> Very cool! I didn’t know this log was available in flow-storm. it is not an nrepl log or anything, is the printer tool, so you can record everything that is happening for nrepl and cider for example, and then print every call to this read bencode form to get that