Fork me on GitHub
#clojure-uk
<
2021-10-05
>
dharrigan06:10:50

Good Moring!

Rachel Westmacott19:10:13

Has anyone here developed nREPL middleware? I'm having a go at it and I think I'm hitting some sort of caching issue where it refuses to pick up my changes.

rickmoynihan08:10:19

I’ve done some pretty trivial ones; the most notable being nrebl.middleware. I don’t recall anything particularly unusual with it, you might want to check and make sure you’re passing vars not functions to set-descriptor

Rachel Westmacott08:10:36

Thanks, that's a good thought, but it's not that...

rickmoynihan08:10:43

How are you developing it? nREPL is slightly unusual if you’re using nREPL to develop nREPL. I’m assuming you’re using the recommended interactive hacking workflow? https://nrepl.org/nrepl/0.8/hacking_on_nrepl.html#interactive-hacking

Rachel Westmacott10:10:47

I have recently started doing it like that - and it seems to be better.

Rachel Westmacott11:10:07

Previously I was setting the middleware with the nrepl.edn file and then starting an nrepl from cursive. It works the first time and then seems to get cached and I can't seem to make it pick up my code sensibly.

Rachel Westmacott11:10:56

I liked that approach because that was how I imagined using the middleware from other projects, so it seemed like a good test.