This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-15
Channels
- # 100-days-of-code (7)
- # beginners (58)
- # boot (1)
- # cider (12)
- # clojure (69)
- # clojure-nl (1)
- # clojure-serbia (1)
- # clojure-spec (34)
- # clojure-uk (3)
- # clojurescript (14)
- # clojutre (3)
- # core-async (1)
- # core-logic (6)
- # cursive (44)
- # datomic (1)
- # defnpodcast (1)
- # emacs (16)
- # figwheel-main (3)
- # fulcro (14)
- # immutant (3)
- # leiningen (9)
- # mount (1)
- # nrepl (19)
- # off-topic (4)
- # pedestal (2)
- # re-frame (73)
- # ring (2)
- # shadow-cljs (40)
- # tools-deps (14)
- # yada (4)
I am trying to find a way for a piece of middleware to access a var bound in the current thread
It seems messages inbound to the nREPL have
:session
bound to an atom containing the bindings. But the message on the way out seems to just have the session id boundThat session id needs to be on the inbound message, and bound variables put on the transport back
I wrap the transport of every inbound message to gain access to messages on the way out
Ideally I would be assoc-ing in the a value derived from the raw exception. (in line 16) IE, I would love to be able to access
*e
Seems to me you want to do something along the lines of https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/util/error_handling.clj#L172