Fork me on GitHub
#clojurescript
<
2015-11-19
>
martinklepsch00:11:14

It’s something I’d probably just use a define for, that said there’s probably some other way involving macros (as there usually is :))

johanatan00:11:18

Actually I got this when trying to use a nil value: goog-define requires a string, number or boolean as default value

martinklepsch00:11:07

yeah ok, then nil is not valid, wasn’t sure. sorry about that troll

johanatan00:11:15

No worries. simple_smile

richiardiandrea01:11:24

Hello guys, just a nod on this, I am going bananas, does ^:export work on def as well as defn ?

bostonaholic01:11:28

can anyone explain :depends-on for cljs module compiling?

richiardiandrea01:11:10

mmm can't help you on this, let's wait for someone to chime in simple_smile

delaguardo06:11:26

How can i detect is input[type=date] supported in browser from clojurescript?

wildermuthn06:11:37

So, full-stack ClojureScript is fun with nodejs. Is there a way to have the compiler use reader conditionals (or another mechanism) to distinguish between differerent clojurescript builds, rather than clojure vs clojurescript?

samflores10:11:09

@delaguardo: I believe you'll need to use js interop for that

delaguardo10:11:47

@samflores: This is how i do that, but also i append created element into DOM and after that check attribute and remove it

samflores10:11:14

that's probably a better idea 😄

darwin17:11:33

FYI, last week I started hacking on a chrome extension and this library is a by-product: https://github.com/binaryage/chromex << @ricardo

darwin17:11:33

interesting part is that it is fully generated from chromium sources https://github.com/binaryage/chromex/tree/master/src/exts

halcyon17:11:53

woah that’s really cool!

dnolen18:11:52

cleaned up :parallel-build true compiler option so that it plays better with Figwheel, if you know how to test master in your projects, give it a shot

dnolen18:11:06

would like to know that it still works well with cljsbuild, boot etc.

lvh19:11:37

bhauman: any opinions on figwheel enabling the :repl profile? After using http://blog.maio.cz/2015/11/cider-slows-down-leiningen-startup-here.html, I wasn’t getting cider-nrepl anymore with lein figwheel, which is in my :repl profile.

lvh19:11:59

(the workaround is pretty trivial with with-profile)

lvh19:11:12

but it may not be obvious to people that’s what you need to do simple_smile

lvh19:11:20

How do you run tests that involve core.async in the browser with useful exceptions?

lvh19:11:52

I’m getting stuff like TypeError: undefined is not a constructor (evaluating 'fn1.call(null, ret)’) which is not very conducive to finding out what the actual problem was

hans20:11:02

Hi! I'm trying to follow the om.next Quick Start tutorial and things work for the first time, but when I restart the repl, I receive the message ANALYSIS ERROR: Map literal must contain an even number of forms on file null, line null, column null no matter what. I can restore to a working state by removing resources/public/js, but the startup time is already high, so I would like to avoid having to freshly compile everything all the time. Does anyone recognize the problem?

hans20:11:04

https://gist.github.com/hanshuebner/f15e915e349f0ca0f979 if someone wants to see the full error message

dnolen20:11:42

@hans seems pretty strange since there’s no file or line number associated with that

dnolen20:11:01

and I haven’t seen anybody report anything like that for the last alpha

hans20:11:29

Looks strange to me as well. I'll try on another box. Thanks!

hans20:11:58

On another box, the message is slightly different: ANALYSIS ERROR: No dispatch macro for: ) on file null, line null, column null

dnolen21:11:11

this sounds like an environment problem

dnolen21:11:19

unrelated to Om

hans21:11:21

Yes. It is caused by my profile.clj

hans21:11:45

Never mind me. I think I'll be able to figure it out.

dnolen21:11:10

@hans ok, there’s also a #C06DT2YSY channel for more focused discussion