Fork me on GitHub

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?


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 wish aggressive-indent-mode didn't slow down editing on big fns/files


I love it, but it's painful on much of the code I work on 😞


I think only big fns cause the slowdown


in a way it motivates you to write better code


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 save the file a lot, force of habit


hmm, also, there are two JVMs when I start cider. One is the launcher? It's just eating up 600MB of RAM