perun 2017-04-04

@mitchelkuijpers has joined the channel

Hi can anyone tell me how to get perun to hot reload all code, it seems to work really flaky or it sort of hot reloads

Hi @mitchelkuijpers - When used with watch, Perun should reload things that changed. Can you share more details?

It does not seem to reload all clojure code

I'm going to need some specifics in order to help

We have a core.cljs in which a function get's called, and that uses a function which returns hiccup from another ns if we change the arity of that function and then the calling of that function it will forever say that the arity is wrong

ah, okay, so this is cljs. Perun doesn't deal directly with with reloading front end code - are you using boot-reload?

Oh lol I mean core.clj

Sorry

okay, so just so I understand, you've got something like (ns your-project.core (:require [your-project.hiccup :refer [get-hiccup])), and when you change the get-hiccup fn, it doesn't get reloaded?

okay, yeah, that should work. Are you using a fn in your-project.core as a :renderer argument to a Perun task?

We use it mostly with the static task for now

Butt I'll try it out tommorow some more, I created a start point for our ux designer. Maybe he is doing something weird. I was mostly asking because it might have been a wrong assumption that clj code would get reloaded automatically

No, that is a correct assumption. I will make a minimal reproduction, and if I can't get it to fail, we can compare to see what is different.

@bhagany I think we are using the newest snapshot so maybe that is the issue

I will use that for my reproduction attempt, then

but in general, the snapshot should be okay

Awesome, I'll be gone for now so no rush at all. If you want I can try to make a reproduction tomorrow

If I can't get to it by then, that would be most welcome