figwheel-main icon indicating copy to clipboard operation
figwheel-main copied to clipboard

hooks not always called when dependencies change & :build-inputs set

Open SevereOverfl0w opened this issue 5 years ago • 2 comments

I think the underlying issue might be in figwheel-core, but I'm not certain.

Repo for reproducing here: https://github.com/SevereOverfl0w/figwheel-main-hooks-dependencies derived from the figwheel template.

Repro steps:

  1. Clone the repo (:
  2. Run clojure -A:fig:build
  3. touch src/hello_world/app.cljs (Get alert)
  4. touch src/hello_world/dep.cljs (Do not get alert)

As a bonus I also made the on-reload hook dependent on dep.cljs, so this is quite interesting:

  1. Modify src/hello_world/dep.cljs, and change 2 to 3.
  2. touch src/hello_world/app.cljs (Get alert, but with 2 still).

SevereOverfl0w avatar Jan 25 '19 09:01 SevereOverfl0w

So I'm looking into this and I've found the problem and I've started on a solution.

bhauman avatar Mar 02 '19 13:03 bhauman

Sorry for the delay here, it's a pretty tricky situation when build-inputs are used as the compiler doesn't create the same analysis-data as when its passed source directories.

I've been really busy with other things. I'm planning on getting back to this soon.

bhauman avatar Apr 10 '19 14:04 bhauman