Fork me on GitHub
#devcards
<
2018-06-07
>
fdserr02:06:16

@bhauman done, not getting better. Just for feeback, I hardcoded devcards.util.utils/devcards-active? to return true, it does the trick. I'm gonna give a try to a patch when I can (prolly week-end lol). Briefly, where and how did you intend to set the devcards flag? xxx.cljs.edn or figwheel-main.edn?

fdserr02:06:34

--- Bingo. Flag set in xxx.cljs.edn, et voila:

{:main de2e.core
 :figwheel {:devcards true}}

bhauman02:06:05

@fdserr you need to put the cards in a separate ns and then require the ns

fdserr02:06:26

Done, everything okay now 🙏

bhauman02:06:34

that flag has no effect whatsoever

bhauman03:06:15

you probably needed to clean between runs

bhauman03:06:33

there is nothing in figwheel.main that uses that flag

fdserr03:06:05

BTW how do you clean using CLI?

bhauman03:06:55

oh yeah you are right about the flag!!!

bhauman03:06:04

so sorry I forgot about that

bhauman03:06:21

I really need to change that,

fdserr03:06:23

LOL pushed to https://gitlab.com/fdserr/de2e.clj The flag does effect the cards showing or not. FW rebuilds on restart it seems.

fdserr03:06:24

Nothing to be sorry about Bruce, I am sorry bothering you^

fdserr03:06:44

Lolled about rm -rf to clean... smthg missing in CLI^

bhauman03:06:40

devcards should default to on, and should be turned off explicitly

fdserr03:06:40

Look, I'm gonna put an issue on fw.main repo with the workaround. If/when you have time, explain the intent and I'll see for a patch okay?

bhauman03:06:26

actually isn't the flag supposed to be {:main yada.core :devcards true}

fdserr03:06:04

suppose it'd work as well. but in the lein template you've always set :figwheel { :devcards true} ;; <- note this, that's for a fw+devcards build. I set plain :devcards true when I want a build with cards but no figwheel (production cards, sort of)

bhauman03:06:53

if you are using figwheel.main with CLI :devcards true is the only thing that should work

bhauman03:06:06

oh and if you used cljs.main just once, it could have cached something badly

bhauman03:06:40

dang all these issues, it was a bad idea try and make devcards dissappear from the source code

bhauman03:06:58

it rarely works properly and it definitely makes them hard to configure

bhauman03:06:49

but for your current situation, I'd delete ~/.cljs, and set :devcards true

bhauman03:06:23

otherwise they will disappear again probably

fdserr03:06:32

lol, chill, you're doing awesome, devcards rarely don't work for us, on the contrary 😃 now clj/cljs.main are big changes, and fw.main must be tough job. but worth, I see a great improvement on compile times and startup.

fdserr03:06:24

I'll do as you advise, more testing, with hard refresh... but if you checkout the code, you'll see it works with just un/commenting the flag and restart fw.main.

bhauman03:06:25

@fdserr they don't show up

fdserr03:06:24

Yup. Just experiencing the cache trouble. Very hard to diagnose in this context. Mike/Dave must have a cache switch, else I don't see how they can work in this mess. Need to switch task, will try again later, talk to you soon 🙏