Fork me on GitHub
#cider
<
2018-08-28
>
reefersleep09:08:14

I’ve deleted a failing deftest from an ns. When I run cider-test-run-ns-tests, it keeps failing the deleted test. I’ve tried cider-load-buffer, it hasn’t made a difference. Am I making a rookie mistake?

dominicm09:08:16

@reefersleep cider-load-buffer won't clear old vars from the file.

dominicm09:08:28

cider-refresh would, as long as your project is compatible.

reefersleep09:08:25

cider-refresh does not work for me currently. Wrong type argument: commandp, cider-refresh

dominicm09:08:07

I think there's a cider-undef.

reefersleep09:08:01

There is! I’ll give that a try if it happens again.

reefersleep09:08:16

Do you have any idea what my error message re: cider-refresh could indicate?

reefersleep09:08:26

I’m not used to emacs lisp errors

dominicm09:08:36

I do not sorry, I don't actually use emacs.

reefersleep09:08:17

hahaha, no, I thought I recalled that 😄

reefersleep09:08:22

Thanks for your help!

bozhidar09:08:52

@reefersleep How do you invoke the command? What’s the full backtrace?

reefersleep09:08:27

How do I get the full backtrace?

reefersleep09:08:56

I do either SPC m s x while standing in a clojure buffer or SPC : and search for cider-refresh

reefersleep09:08:20

(in spacemacs) 🙂

manuel09:08:15

you could try with M-x toggle-debug-on-error

manuel09:08:29

and then do cider-refresh

manuel09:08:09

or the equivalent for M-x in spacemacs 🙂

reefersleep10:08:55

I get the following on toggle-debug-on-error followed by cider-refresh:

reefersleep10:08:59

Debugger entered--Lisp error: (wrong-type-argument commandp cider-refresh)
  call-interactively(cider-refresh nil nil)
  command-execute(cider-refresh)

reefersleep10:08:20

No less cryptic to me, sadly 😄

bozhidar15:08:30

@reefersleep yep, I finally get it.

bozhidar15:08:52

This command was renamed a while ago to cider-ns-refresh or something like this. I guess that wasn’t reflected in spacemacs.

practicalli-johnny11:09:14

@U051BLM8F @reefersleep on the develop branch of Spacemacs, ‘cider-ns-refresh` is called, by , s x or M-RET s x. It may be a while before master branch in Spacemacs is updated with this change. I recommend using the develop branch for Spacemacs anyway, I have found it very stable.

👌 4
bozhidar15:08:17

I thought we’ve added some alias, though. Guess we didn’t and we should change this.

bozhidar15:08:26

OK, turns out that there’s an alias, but unlike the real function in wasn’t autoloaded, therefore your problem. I’ve fixed this, but also has to be fixed upstream.