This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-28
Channels
- # ai (1)
- # beginners (190)
- # boot (24)
- # cider (43)
- # cljsjs (3)
- # cljsrn (29)
- # clojars (6)
- # clojure (310)
- # clojure-dev (6)
- # clojure-nl (6)
- # clojure-russia (11)
- # clojure-spec (66)
- # clojure-uk (95)
- # clojurescript (103)
- # clojurewerkz (2)
- # core-async (9)
- # cursive (4)
- # datomic (5)
- # hoplon (163)
- # lein-figwheel (52)
- # off-topic (6)
- # om (6)
- # onyx (42)
- # perun (8)
- # re-frame (16)
- # reagent (10)
- # ring (7)
- # ring-swagger (1)
- # rum (1)
- # slack-help (2)
- # uncomplicate (1)
- # untangled (80)
@bhauman have you ever encountered this error while reloading files by any chance?
ioc_helpers.cljs:42 Uncaught Error: No protocol method ISwap.-swap! defined for type cljs.core/Atom: [object Object]
at Object.cljs$core$missing_protocol [as missing_protocol] (core.cljs:272)
at Function.cljs.core._swap_BANG_.cljs$core$IFn$_invoke$arity$3 (core.cljs:756)
at Function.cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$3 (core.cljs:4303)
at cljs$core$swap_BANG_ (core.cljs:4291)
at file_reloading.cljs:303
at file_reloading.cljs:289
at file_reloading.cljs:289
at figwheel$client$file_reloading$state_machine__12780__auto____1 (file_reloading.cljs:289)
at figwheel$client$file_reloading$state_machine__12780__auto__ (file_reloading.cljs:289)
at cljs$core$async$impl$ioc_helpers$run_state_machine (ioc_helpers.cljs:35)
@richiardiandrea yeah some how your state of your runtime got way out of wack. That error should never happen.
@bhauman well yeah 😄
I guess this atom here is not defined https://github.com/bhauman/lein-figwheel/blob/b187d9a4535e96d49f24c01579c30d11715b0fe8/support/src/figwheel/client/file_reloading.cljs#L275
on-load-callbacks
yep I can deref it in the console
woah that's weird
ok that might be the problem then
because I am reloading stuff after an exception and it looks like I am reloading everything
cljs.core
included
good, I am happy I have asked!
no scratch that
anyways thanks a lot! I think I am very close to a first stable alpha
well so one of the things figwheel does is it ensures that you only reload files that are in the source directories and that actually change
yeah I was wondering that, because I am running lein-figwheel
in parallel on the same project to see what happens
yeah, no I am going to filter that for sure
sorry, I mean filtering the change set
yes I understand but the change set should only be the file that changed from edit and its dependents
unfortunately for what I can see, in boot
when an exception happens, no file is written
so the next time I compile it rewrites all of them
which means everything changed
maybe I am missing something (will ask in #boot)
for now I can just filter the messages I send to the client
and see what happens
boot does it by default
but if the previous fileset is empty
yep that is also already done in boot-reload
, probably the case of an ex was handled differently
there is no (reset! prev fileset)
when an exception happens at the moment
I have another random question, it reloads fine now, but the on-reload
function does not get updated properly (aka, if I have a print in it, and I updated it, I never see the new string printed)...can this be due to pragma stuff and figwheel-load
?