This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-26
Channels
- # admin-announcements (1)
- # beginners (1)
- # boot (252)
- # braveandtrue (1)
- # cider (17)
- # clojure (58)
- # clojure-chicago (3)
- # clojure-russia (125)
- # clojure-uk (2)
- # clojurescript (38)
- # hoplon (3)
- # lein-figwheel (11)
- # leiningen (1)
- # mount (2)
- # off-topic (3)
- # om (9)
- # onyx (39)
- # parinfer (24)
- # proton (7)
- # protorepl (7)
- # quil (4)
- # re-frame (16)
- # reagent (5)
- # ring-swagger (18)
- # yada (1)
So I'm (finally) taking a swing at this issue... would someone be so kind as to enlighten me about how to hack forward-sexpr
as hinted here? https://github.com/clojure-emacs/clojure-mode/issues/367#issuecomment-197722557
I've got a tiny diff to clojure--loking-at-non-logical-sexp
that seems to do the trick, but not sure what the "desired" outcome is here.
I've found a complicated bug in cider-nrepl / tools-nrepl that is very minor and only affects people running tests in CIDER against CIDER-nrepl
Basically cider-test when you run tests, ends up doing an interruptable-eval in order to run the tests. Now imagine the thing you are testing fires up a new nREPL server and at some point we do another interruptable-eval.... The problem is that when tools.nrepl creates a session, it sticks (get-thread-bindings) into the session map; (get-thread-bindings) contains stuff setup by the outer eval (such as msg). This messes with the inner-eval, in particular the msg in the session takes priority over the explicit (binding [msg msg]) that interruptable-eval does. The msg binding is used by the printwriter setup in the nrepl session-middleware. This means that for the inner-eval std out and std error are redirected to the transport used by the OUTER eval, not the inner.
in tools.nrepl, changing this fixes it: (merge baseline-bindings (dissoc (get-thread-bindings) #'agent)) -> (merge baseline-bindings (dissoc (get-thread-bindings) #'agent #'msg))
interuptable-eval/*msg* has no business being in the nrepl session. It's only here by accident via the outer/inner eval scenario, and it creates adverse effects. I'll stew on it for a bit and consider raising an issue at tools.nrepl
is it normal to see the cider JVM CPU spike every time I'm typing in Emacs? I'm hacking on a laptop and I really notice it because I'm on a laptop and my fan kicks in. I have the flycheck modes enabled
I'm hacking some pretty simple code, e.g. normal dev around https://github.com/fommil/twitter-teflon/blob/master/test/fommil/channels_test.clj#L50