Fork me on GitHub
#clojure
<
2015-10-18
>
escherize04:10:00

is there a known fix for clojure 1.7 + using libraries that define update themselves? I am getting: Attempting to call unbound fn: #'clj-http.client/update And I've "fixed" it by downgrading to clojure 1.6

ul04:10:08

@escherize: I think this is harmless warning. But you can also submit PR to lib with (:refer-clojure :exclude [update])

escherize04:10:26

I should do that, @ul. I don't think its exactly harmless since the other piece of context that I'm getting is:

#error {
 :cause Attempting to call unbound fn: #'clj-http.client/update
 :via
 [{:type java.lang.IllegalStateException
   :message Attempting to call unbound fn: #'clj-http.client/update
   :at [clojure.lang.Var$Unbound throwArity Var.java 43]}]
 :trace
 [[clojure.lang.Var$Unbound throwArity Var.java 43]
  [clojure.lang.AFn invoke AFn.java 48]
  [clj_http.client$wrap_decompression$fn__5010 invoke client.clj 201]

ul04:10:45

interesting, I never had this error, but have this warning, because clj-http is somewhere in transitive deps of my project

ul04:10:20

do you call clj-http.client/update from your code?

escherize04:10:32

I do not, a library I'm using does.

ul04:10:22

ah, sorry, my warning is of another kind, it's just about overwriting core update

ul04:10:25

misread your initial message

ul04:10:44

i never faced your kind of issue

escherize04:10:31

Thanks for your help regardless @ul

noprompt06:10:46

@tord use either [:div.foo {:display :flex} {:display :-webkit-flex}] or [:div.foo {:display #{:flex :-webkit-flex}}]

noprompt06:10:10

@tord multiple maps are permitted, the set syntax isn't documented but should be.

nowprovision08:10:28

trying to produce an environment variable map from a prismatic schema, a predicate is actually a map in schema so Ive had to add (nil? (:pred-name) to get this to work, but that feels hacky, is there a more idiomatic way of detecting when I reach into schema internals

tord12:10:41

@noprompt Thanks! Works great.

martinklepsch17:10:07

@noprompt @tord, sweet, didn’t know about the set syntax, handy!