This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-14
Channels
- # aleph (14)
- # bangalore-clj (2)
- # beginners (39)
- # boot (18)
- # carry (7)
- # cider (37)
- # cljs-dev (1)
- # cljsrn (4)
- # clojure (74)
- # clojure-austin (12)
- # clojure-canada (6)
- # clojure-conj (15)
- # clojure-dev (3)
- # clojure-greece (14)
- # clojure-italy (1)
- # clojure-korea (1)
- # clojure-poland (3)
- # clojure-russia (5)
- # clojure-spec (22)
- # clojure-uk (13)
- # clojurebridge (9)
- # clojurescript (231)
- # cursive (2)
- # datascript (9)
- # datomic (12)
- # devcards (2)
- # emacs (2)
- # events (4)
- # hoplon (28)
- # off-topic (35)
- # om (61)
- # onyx (8)
- # parinfer (8)
- # proton (1)
- # re-frame (53)
- # reagent (10)
- # ring-swagger (8)
- # specter (11)
- # untangled (3)
- # vim (4)
@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.
@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"]
@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 🙂
@adamfrey re: that weird error you saw, it smells of AOT
like is it possible that core.async ships with AOT'd .class files in the jar that are conflicting with your clj?
So I guess not “figured it out” but avoided. I’m not sure the difference, and it could definitely be an AOT issue
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
were you using gen-class or AOT anywhere?
yeah man totally, aot: almost always a mistake
https://github.com/tailrecursion/boot-jetty btw if you were unaware
and boot's web
task will make a shim for you
yeah the web task is a frontend for https://github.com/tailrecursion/clojure-adapter-servlet
@keithsparkjoy totally reasonable, but the default :class implementation adds classes instead of replacing
yep that’s what I’m seeing
I recommend your own do! method that defers to jq toggleclass
I have an example of this somewhere I can dig up later if you have trouble
No worries thanks @alandipert. Just wanted to make sure I wasn’t seeing things or doing something wrong 🙂
I’ll try the custom do! method.
Really enjoying Hoplon so far, BTW. Thanks guys 🙂
@keithsparkjoy if you do {:class (cell= {"green" (even? state) "red" (odd? state)})}
it should work.
Thanks @mynomoto - I’ll try that!