Hi all! Has anybody ever encountered this error when requiring malli?
Type: java.lang.IllegalArgumentException
Message: No matching clause: java.time.temporal.TemporalQuery
Location: malli/experimental/time/transform.cljc:16:6Probably some class is missing from that namespace
babashka.impl.reify2/reify-fn - <built-in>
clojure.core/reify* - <built-in>
malli.experimental.time.transform/->temporal-query - malli/experimental/time/transform.cljc:16:6
malli.experimental.time.transform/->temporal-query - malli/experimental/time/transform.cljc:14:1
malli.experimental.time.transform/->parser - malli/experimental/time/transform.cljc:24:15I guess nobody tried to evaluate this before?
yep - not a problem - that's an experimental namespace anyway
I'll see what can be done there
we can add support for this:
(defn ->temporal-query ^TemporalQuery [f]
(reify TemporalQuery
(queryFrom [_ t]
(f t))))but all reify cases are hardcoded, this is why you see the error
yeah I just opened that malli namespace in front of me
open an issue and I can take a look tomorrow
Here you go https://github.com/babashka/babashka/issues/1923
all working now. please test the dev build
ok thank you will do 😄
Ok I think I got past that - now I have another question - is https://github.com/juxt/tick currently bb compatible?
actually I am here - let me try to require it
ok yes it is
(require '[tick.core :as t])
nil
user> (require '[clj-time.format :as ctf])
java.lang.Exception: Unable to resolve classname: org.joda.time.ReadablePartial hammer.x-force.domain.audit clj_time/core.clj:92:3
This code is messy - I think I'll have to avoid requiring clj-time.formatin bbbut thanks both mallli and tick seem to work nicely!
yeah clj-time isn't supported
I mean - better to have joda out of the mess 😄
but this is the classic clojure project where you have all three 😄
#?(:clj
(defn- -utc-date-time-string?
[x]
(try (ctf/parse (ctf/formatters :date-time) x)
(catch #?(:cljs :default :clj Exception) _))))