Hello,
first time poster here, hope I won’t break any rules
I want to try malli instrumentation for clojurescript but I’m kinda stuck almost at the beginning.
I’ve setup a very simple test project here GitHub - eauc/test_malli_cljs
Basically I just have a namespace where I instrument a function then start the malli instrumentation
(ns hello.core
(:require [malli.core :as m]
[malli.dev.cljs :as md]))
(defn a-function
{:malli/schema [:=> [:cat :int] :string]}
[x]
(str x))
(md/start!)
When I start the REPL with clj -M:repl
(or try to compile) I get an execption no conversion to symbol
that points to the malli.instrument.cljs/-collect
function, line 11
(defn -collect! [env simple-name {:keys [meta] :as var-map}]
(let [ns (symbol (namespace (:name var-map)))
I’m guessing somehow the (namespace ...)
resolves to nil
and symbol
is not happy about it.
I’m not sure where to go from here.
Have I made a mistake in my setup ?
Is this a known behaviour ?
thanks in advance,
Emmanuel