Fork me on GitHub
#figwheel-main
<
2019-02-06
>
andrea.crotti10:02:22

in case it might help others, the problems I was having with https://clojurians.slack.com/archives/CALJ3BFLP/p1549284856286700 was incredibly stupid

andrea.crotti10:02:05

in short I just changed the name of the configuration file for figwheel, and as a consequence it was always loading an old js generated file instead of the newly generated one

andrea.crotti10:02:50

not sure if there is something to warn about this sort of stupidity, but maybe it's not so easy

magnars12:02:06

After upgrading to ClojureScript "1.10.516" I get a warning when figwheel tries to reload my code: Can't take value of macro cljs.core/and, when the code looks like this:

(when (and beg end) ,,,)
but the warning goes away if I do this:
(let [both? (and beg end)]
      (when both? ,,,))
I guess it could be something to do with the new type inference. However, it does not happen when figwheel initially compiles the code. What is the difference between these two scenarios? Any ideas for how I can try to reproduce this without figwheel so that I can make a Jira-report to ClojureScript?

john15:02:06

I'm also getting spurious Can't take value of macro exists? errors on occasion, out of the cljs.loader namespace, but only sometimes after an auto-refresh

john17:02:49

I do a manual browser refresh and it disappears

john17:02:06

exists? returning a boolean, I wonder if the new type inference is involved here as well.

magnars17:02:34

yes, this is the same issue - when uses if under the hood.