lein-figwheel

isak 2017-03-01T16:27:22.000864Z

@shaun-mahood I have confirmed that it is the figwheel process (java.exe) that is hanging on to these files using process explorer

devth 2017-03-01T19:06:33.000865Z

occasionally i cause a client-side error that appears to prevent fighweel from reloading. anyone else experienced this, or tried to detect errors? solution is usually to fix the problem and hard refresh. would be awesome if figwheel could detect this and tell the user to reload

1
✅ 1
jdkealy 2017-03-01T19:30:23.000868Z

anyone have suggestions for debugging a slow reload? CSS is pretty instant, cljs changes take 5-6 seconds

isak 2017-03-01T20:15:16.000869Z

@jdkealy how many files get reloaded for cljs changes? maybe someone went nuts with ^:figwheel-always

shaun-mahood 2017-03-01T20:15:57.000870Z

@isak: Probably worth filing an issue with relevant details. Is it something you want to put any time into fixing, or are you happy just knowing what's going on?

isak 2017-03-01T20:18:00.000871Z

@shaun-mahood will do. And yea maybe, will have to try to get an overview of the code

jdkealy 2017-03-01T20:18:26.000872Z

@isak how can i tell how many files get reloaded ?

isak 2017-03-01T20:19:01.000873Z

@jdkealy if you check the devtools console, it gives you a list of the files it reloads

jdkealy 2017-03-01T20:23:53.000874Z

the devtools console is just the chrome console with devtools installed ?

isak 2017-03-01T20:25:01.000876Z

just normal console should show it

jdkealy 2017-03-01T20:47:09.000877Z

it appears to only be loading a single file

isak 2017-03-01T20:55:04.000878Z

hm then i'm not sure, I had the same problem before, but then it was because of that. https://github.com/bhauman/lein-figwheel/issues/88

isak 2017-03-01T20:55:18.000880Z

(big list of files, i mean)

2017-03-01T22:00:20.000881Z

so, has anyone encountered anything like the following? I suspect I’m misconfigured somehow. When I access my app the first time it works and reloading works as well. However, after triggering a hot reload, and then refreshing the page (F5), figwheel’s websocket connection disappears, and I also get the error goog.require could not find: figwheel.connect.build1

2017-03-01T22:01:33.000883Z

(I do have multiple builds going on simultaneously)

2017-03-01T22:06:04.000885Z

and I start figwheel with (figwheel-sidecar.repl-api/start-figwheel! "login" “build1" “imageviewer”)

2017-03-01T22:14:59.000889Z

the problem goes away if I just build one of the targets with (figwheel-sidecar.repl-api/start-figwheel!)

2017-03-01T23:21:56.000890Z

just figured it out. sharing output-dir across builds appears to work at first, but puts things in an inconsistent state (as you might expect!) https://github.com/bhauman/lein-figwheel/issues/453