Fork me on GitHub
#hoplon
<
2016-10-14
>
vigilancetech02:10:32

@jumblerg that would make sense as to why @jjttjj's example worked so well above. And here I was thinking it was excessively redundant. Thanks for clearing that up.

onetom02:10:40

@adamfrey i vaguely remember seeing similar errors but after upgrading all of our deps to latest everything works now. these are the necessary ingredients currently:

[org.clojure/clojure "1.9.0-alpha13" :scope "provided"]
    [org.clojure/clojurescript "1.9.229"]

    [hoplon "6.0.0-alpha16"]
    ; Explicite transit version for castra to avoid warning:
    ;   uuid? already refers to: cljs.core/uuid?
    [com.cognitect/transit-clj "0.8.290"]
    [com.cognitect/transit-cljs "0.8.239"]
    [hoplon/castra "3.0.0-alpha5"]

    [adzerk/boot-cljs "1.7.228-1" :scope "compile"]
    [cljsjs/boot-cljsjs "0.5.2" :scope "compile"]
    [adzerk/boot-reload "0.4.12" :scope "compile"]
    [hoplon/boot-hoplon "0.2.5" :scope "compile"]
    [tailrecursion/boot-static "0.1.0" :scope "compile"]

    [binaryage/devtools "0.8.2" :scope "test"]
    [binaryage/dirac "0.7.1" :scope "test"]
    [powerlaces/boot-cljs-devtools "0.1.2" :scope "test"]

    [org.clojure/core.async "0.2.391"]

onetom02:10:36

@jumblerg how does the ui rewrite going? im keep struggling to find compromises in the implementation imposed by the lack of fixed/relative positioning. the upside is these limitations keeps our layout still and avoids us going down on styling rabbit holes, but it feels like a restriction on our freedom of expression 🙂

alandipert13:10:07

@adamfrey re: that weird error you saw, it smells of AOT

adamfrey13:10:23

I just figured it out

alandipert13:10:27

like is it possible that core.async ships with AOT'd .class files in the jar that are conflicting with your clj?

adamfrey13:10:54

Switching from jetty to http-kit fixed my problem weirdly enough.

adamfrey13:10:36

So I guess not “figured it out” but avoided. I’m not sure the difference, and it could definitely be an AOT issue

adamfrey13:10:13

I just updated my project to use a Java shim in my uberjar instead of AOT-ing my app. I found AOT tends to often be a headache

alandipert13:10:16

were you using gen-class or AOT anywhere?

alandipert13:10:56

yeah man totally, aot: almost always a mistake

alandipert13:10:48

and boot's web task will make a shim for you

adamfrey13:10:00

just deleted my comment, that’s what I was going to ask

alandipert21:10:01

@keithsparkjoy totally reasonable, but the default :class implementation adds classes instead of replacing

keithsparkjoy21:10:12

yep that’s what I’m seeing

alandipert21:10:34

I recommend your own do! method that defers to jq toggleclass

alandipert21:10:56

I have an example of this somewhere I can dig up later if you have trouble

keithsparkjoy21:10:17

No worries thanks @alandipert. Just wanted to make sure I wasn’t seeing things or doing something wrong 🙂

keithsparkjoy21:10:31

I’ll try the custom do! method.

keithsparkjoy21:10:23

Really enjoying Hoplon so far, BTW. Thanks guys 🙂

mynomoto22:10:56

@keithsparkjoy if you do {:class (cell= {"green" (even? state) "red" (odd? state)})} it should work.

keithsparkjoy22:10:53

Thanks @mynomoto - I’ll try that!

mynomoto22:10:36

It you give class a map it will add classes with values truthy and remove ones with falsey.