devcards 2018-06-07

@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?

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

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

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

Done, everything okay now 🙏

that flag has no effect whatsoever

you probably needed to clean between runs

there is nothing in figwheel.main that uses that flag

BTW how do you clean using CLI?

oh yeah you are right about the flag!!!

so sorry I forgot about that

I really need to change that,

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

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

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

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

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?

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

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)

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

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

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

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

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

otherwise they will disappear again probably

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.

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.

@fdserr they don't show up

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 🙏