Fork me on GitHub
#luminus
<
2017-02-28
>
mruzekw16:02:10

For some reason it seems my cljc files aren’t reloading after each change server-side

mruzekw16:02:20

They update client-side though

frank16:02:51

what mechanism is being used to reload clj files? is it the ring wrap-reload middleware?

mruzekw16:02:58

Yep

(defn wrap-dev [handler]
  (-> handler
      wrap-reload
      wrap-error-page
      wrap-exceptions))

mruzekw16:02:08

Looking at the defaults it should work with anything under src

frank16:02:03

it might have something to do with the tools.ns function that I assume is what is being used under the hood

sveri16:02:05

@mruzekw IIRC wrap-reload accepts a vec of paths, I would try adding my cljc path to that.

mruzekw16:02:27

The path is src currently

mruzekw16:02:45

Wouldn’t it pick up any path within src?

sveri16:02:52

It should

mruzekw16:02:11

My cljc files are in src/cljc

sveri16:02:27

I am sorry then, was just guessing about a potential problem

mruzekw16:02:51

I thought the same too, but alas

mruzekw16:02:45

Too bad there’s not a verbose feature so it tells which files it has reloaded