metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.51k stars 215 forks source link

Not working with babashka #302

Closed lucywang000 closed 2 years ago

lucywang000 commented 4 years ago
user=> (require '[malli.core :as ma])
Could not resolve symbol: deftype [at borkdude/dynaload.cljc:4:2]

I made several quick fixes here to make the require work: https://github.com/lucywang000/malli/commit/1f46840

But it still can't run the simplest validation:

user=> (require '[malli.core :as ma])
nil
user=> (ma/validate int? "1")
java.lang.NullPointerException [at malli/core.cljc:1003:7]

Looks like something wrong with babashka's defprotocol implementation.

ikitommi commented 4 years ago

Would be great if it worked. Help most welcome. subscribed the https://github.com/borkdude/babashka/issues/647.

borkdude commented 2 years ago

A PR: https://github.com/metosin/malli/pull/718