Fork me on GitHub
#fulcro
<
2018-05-26
>
beders03:05:36

anyone else experiencing 7+ seconds of delay before figwheel kicks in?

beders03:05:40

how can I troubleshoot this?

beders03:05:58

I'm running -Ddev and -Dcards from Intellij (working through section 2.3.5 of the manual)

cjmurphy03:05:44

I think that might just be how it is. You can switch to shadow-cljs for the dev part. Getting cards working with shadow-cljs was a bit of a challenge (I gave up), but I'm told it can be done. (Just need an example).

beders03:05:39

hmm, last time I toyed with clojurescript using re-frame, the figwheel reload was within one second or so. Not sure what is eating 7 seconds or more

cjmurphy05:05:08

Which is the worst contributor, dev or cards? I'm suspecting it will be cards.

thheller18:05:38

@U0D5RN0S1 care to provide some more details about your devcards problems? it should just work? you might be running into this https://github.com/bhauman/devcards/pull/135

cjmurphy12:05:50

@thheller I'll definitely communicate next time I try to use devcards from the project in question. Hopefully soon, whether success or failure.

eric.shao04:05:11

I want to ask the same question.* How to improve the figwheel/defcard responding speed? It will take 9 seconds to see the change everytime.I have changed the IDEA vmoptions to -Xms1g -http://Xmx2g.It doesn’t work. I am using a 2014 macbook air( 1.4 GHz Intel Core i5, 4 GB 1600 MHz DDR3).

OliverM17:05:36

@beders @eric.shao I was experiencing very slow figwheel builds too. Switching to shadow-cljs resolved these & I'm getting builds of a second or less in both devcards and my app. Changing from figwheel to shadow-cljs is a bit finicky - the hosting html pages are different, the project.clj is quite different & shadow-cljs's own config mechanism replaces the previous figwheel and lein-cljsbuild config in project.clj

👍 2
OliverM17:05:36

To help me through it I created a new fulcro shadow-cljs project from scratch and copied the configuration from there into my own app. If you try that and get stuck let me know

beders20:05:47

which template did you use? the one here https://github.com/fulcrologic/fulcro-template doesn't really have shadow-cljs support (there's no config file generated for it)

OliverM17:05:06

Oh, the testing setup changes too

thheller17:05:24

let me know too. maybe I can make some things smoother in the future.

wilkerlucio17:05:57

@thheller I'm just porting the manifest to the new format, and I wonder something, how we would go about having multiple content-scripts there?

thheller17:05:26

you create an extra entry in the map.

thheller17:05:58

:content-script {:init-fn some.thing/foo} is just short for :content-script {:output-type :chrome/content-script :init-fn ...}

thheller17:05:14

so you can just :something {:output-type :chrome/content-script :init-fn ...}

thheller17:05:43

don't forget :chrome/options though

thheller17:05:00

:output-type :chrome/content-script is what matters. the key just controls how the file will be named.