Hi @ericihli You can try to replace your .dirs-local content with this:
((nil . ((cider-refresh-before-fn . "integrant.repl/suspend")
(cider-refresh-after-fn . "integrant.repl/resume"))))
I did try that. Does that need to be paired with certain code in ig/init-suspend
/ ig/init-resume
? Because I was seeing the same behavior. Cider reported suspending resuming just fine but website wasn't noticing changes.
@ericihli Yes in fact I was planning it a bit because behnind suspend / resume
, it's halt / init
in the end.
There must have another misconfiguration.
Maybe sharing a code snippet of your config definition can help ?
If you call (reset)
from the REPL, is it working?
The config is at https://gist.github.com/eihli/caf8ef17c1e489ba7c38e09367bde51b
I'll check again on (reset)
in a bit. If I remember correctly, it was working when I called (reset)
from the repl but when I tried to set that as the cider-ns-refresh-after-fn
I was getting an error about not being able to set *ns*
binding outside of something or another.
I think the solution to the error would have been what I see in the duct.core.repl code.
(defn- auto-reset-handler [ctx event]
(binding [*ns* *ns*]
(integrant.repl/reset)
ctx))
@ericihli I see a typo here https://gist.github.com/eihli/caf8ef17c1e489ba7c38e09367bde51b#file-example-clj-L46
The server doesn't stopping in when halting.
Try after replacing (server
with (.stop server)
You can also check my repo here who also using .dir-locals.el
file and Integrant reloaded workflow
https://github.com/PrestanceDesign/usermanager-reitit-integrant-example
Ohhh interesting. But... I thought to stop an http-kit server you just called it. http://http-kit.github.io/server.html#stop-server
Yeah.
> run-server
returns a function that stops the server, which can take an optional timeout(ms) param to wait for existing requests to be finished.