This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-04
Channels
- # architecture (20)
- # aws (8)
- # beginners (13)
- # boot (9)
- # cider (80)
- # cljs-dev (69)
- # cljsrn (7)
- # clojure (243)
- # clojure-dusseldorf (8)
- # clojure-italy (5)
- # clojure-norway (3)
- # clojure-poland (57)
- # clojure-russia (10)
- # clojure-shanghai (2)
- # clojure-spec (11)
- # clojure-uk (50)
- # clojurescript (198)
- # core-async (11)
- # crypto (2)
- # cursive (14)
- # datomic (17)
- # figwheel (8)
- # garden (7)
- # hoplon (8)
- # incanter (4)
- # jobs (1)
- # leiningen (1)
- # liberator (38)
- # lumo (28)
- # om (55)
- # onyx (10)
- # pedestal (13)
- # perun (20)
- # re-frame (1)
- # reagent (16)
- # ring-swagger (9)
- # spacemacs (11)
- # test-check (9)
- # unrepl (43)
- # untangled (163)
- # yada (8)
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
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 I mean core.clj
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
Awesome, I'll be gone for now so no rush at all. If you want I can try to make a reproduction tomorrow