Fork me on GitHub
#cider
<
2016-01-26
>
colin.yates11:01:20

hey - I am no longer an emacs virgin - I wrote my first non-copied-from-google-hoping-for-the-best emacs lisp:

(defun clean-clojure-file ()
  (interactive)
  (when (cider-connected-p)
    (cljr-clean-ns))
  (prelude-cleanup-buffer-or-region)
  (save-buffer))
(key-chord-define-global "cc" 'clean-clojure-file)

malabarba13:01:35

Congrats @colin.yates :-)

voxdolo17:01:48

Was there a recent change to how Cider handles C-c C-k? It doesn't actually seem to be loading the buffer afaict.

voxdolo17:01:20

My normal test cycle is: write test, test fails, write code to implement, load buffer, run test

voxdolo17:01:38

but the load buffer part isn't picking up on my changes

voxdolo17:01:47

I'm resorting to a full cider-refresh to reload (which is still very fast, given the small number of changes), but I'm mostly curious why cider-load-buffer isn't working as expected (or if it's just me)

bozhidar18:01:25

no, this hasn’t been changed in quite a while

voxdolo18:01:58

Okay, I'm going to assume it's on my side then. I introduced mount recently and am still working through some reloading issues.

malabarba18:01:35

@voxdolo does it work if you just make some trivial change? Like adding a def...

voxdolo18:01:11

Well, it's now working intermittently even changing code inside a function

voxdolo18:01:33

it initially wasn't reloading code inside a dispatch function for a multimethod

voxdolo18:01:00

but now that's working… after some indescribable number of actions 😕

voxdolo18:01:44

I'll try to take note of it when it's happening again. If you've got any debugging steps I can take, I'd be happy to run through them when I hit it again.

pandeiro22:01:42

was the default indentation for s-expr's beginning with :require changed recently?

malabarba23:01:25

@voxdolo you can have a look at the nrepl-messages buffers to see whether the load-file op is being sent or not

malabarba23:01:46

Or check the Messages buffer for any error messages

voxdolo23:01:48

malabarba: cheers

voxdolo23:01:07

I didn't think to do that earlier. will do next time I see it.