Fork me on GitHub
#vim
<
2022-05-30
>
reborg15:05:03

If I use cpr from within a clj file (shortcut from vim-fireplace) I know the file will re-evaluate and sync the buffer with my running REPL session, I use this all the time. I'm reading in the doc that I should see also running tests? They don't seem to run, so I'm asking what you see. Thanks

reborg15:05:01

From the message, Success: (clojure.test/run-tests 'myprj.myns) it seems it's searching test vars defined in the same namespace. After some experiments, I can see that it only works with tests defined in the same file as the namespace under testing, which is sub optimal for many reasons.

reborg15:05:28

Will continue using as before, cpr shortcut to reload namespaces, tests running in separate tmux pane.

Noah Bogart17:05:53

Do you mean fireplace? Fugitive is the git wrapper

reborg17:05:44

sorry, yes, my bad

👍 1
geraldodev17:06:35

@U054W022G I don't know if it helps, but i have something like autocmd FileType clojure nnoremap <leader>ra :w \|:Eval (do (require 'user) (in-ns 'user) (refresh-all))<cr> with fireplace, to save current buffer and to invoke refresh

👍 1
reborg15:05:27

Unrelated, is clj-refactor the only option to get access to refactor-nrepl goodies these days?

nate15:05:09

I believe that is true.

nate15:05:47

Looks like there's a decent overlap between that and what I use (clojure-lsp).

☝️ 1
reborg17:05:05

true, thanks, will look into that integration as well

dominicm20:05:23

I have the namespace cleaning in replant, but not much else