Fork me on GitHub
#clojurescript
<
2016-03-20
>
seanirby00:03:49

anybody get "println" working using CIDER and a nodejs repl?

karolmajta19:03:14

is there any way to force clojurescript compiler to always recompile a particular namespace?

karolmajta19:03:09

I've seen :recompile-dependents compiler option, but that's not exactly what I'm looking for

janxspirit19:03:14

having a bit of trouble getting a handler to work with a POST in cljs-ajax - was hoping someone could help

karolmajta19:03:29

and BTW, judging from docs it's on by default

maxov20:03:18

I think I’m seeing a difference in behavior between clojure and clojurescript - trying (comp identity :key) for both. works in clojure, throws an arity error in clojurescript

bronsa21:03:26

@maxov: what's the actual code and stacktrace?

maxov21:03:48

@bronsa: looked at it again, seems to have gone away… seems like my mistake, sorry

grav21:03:32

@maxov if you just evaluate (comp identity :key) , you’ll get a javascript source code listing, which contains the text throw(new Error('Invalid arity: ' + arguments.length)); as one of the last statements.

grav21:03:40

Maybe that’s what you’ve seen?

grav21:03:06

For me, ((comp identity :foo) {:foo 42}) evaluates to 42

grav21:03:12

(in planck)

maxov21:03:59

@grav yeah, it looks like it works. I think I was using it an context where I thought the composed function was called with 1 arity, but it wasn't

amacdougall22:03:22

Luminus gave me a project.clj with a structure like this:

:profiles
{:dev           [:project/dev :profiles/dev]
 :test          [:project/test :profiles/test]
 :project/dev { ... actual meaty stuff }
 ...remaining keys}
This works! But according to configleaf, the final merged profile has (:builds (:cljsbuild project)) as a list, not a vector. This is fine under most circumstances... but doo can't handle that. At a particular point in its plugin code, it says:
(cond
  (map? builds) ; do useful stuff...
  (vector? builds) ; do useful stuff...
  :else (throw (Exception. ":cljsbuild :builds needs to be either a vector or a map")))

amacdougall22:03:54

Has anyone else run into this? Is there a smarter way I should be setting up project.clj? Or should I just make a PR against doo for it to cast builds to a vec if possible?