This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-22
Channels
- # announcements (1)
- # aws (2)
- # babashka (52)
- # beginners (35)
- # calva (20)
- # clj-kondo (13)
- # cljdoc (8)
- # clojure (14)
- # clojure-uk (6)
- # clojurescript (5)
- # conjure (13)
- # crypto (1)
- # data-oriented-programming (1)
- # datalevin (7)
- # emacs (2)
- # fulcro (21)
- # graalvm (14)
- # introduce-yourself (1)
- # lsp (6)
- # malli (17)
- # off-topic (15)
- # re-frame (10)
- # releases (1)
- # sci (2)
- # shadow-cljs (17)
- # tools-build (9)
- # tools-deps (6)
Is there a way to get function instrumentation working in CLJS? There seems to be some stuff in malli.instrument.cljs
but my CLJS build complains that that ns is not available.
Haven’t used that myself, but the tests pass. Are you depending on the latest version from master? It’s not released yet
@U0DTSCAUU feel free to ping me if you run into any issues!
@ikitommi FYI: The CLJ Kondo config has unbalanced bracket 🧵
A PR with issue fixed https://github.com/metosin/malli/pull/625
I’m having a problem with instrumenting my functions. I define a function in namespace A and register it with Malli as follows:
(m/=> selectable-label [:=> [:cat [:map
[:build map?]
[:selectable-id id/SelectableId]]]
locale/LocalizableString])
Then in namespace B I call
(mi/instrument!)
This triggers errors when compiling namespace B that namespaces id
and locale
are not found. These are aliases from the :require
block in namespace A. Is there any way around this?I think this may be one of those subtle things about CLJS macros, where we can’t qualify the namespace since the macro is running in CLJ.
Hi there guys. I'm new to clojure and especially to malli. So, I'm playing around repl and malli, and notices that below example from the documentation doesn't work
(m/decode
[string? {:decode {:string 'str/upper-case}}]
"kerran" mt/string-transformer)
; => "KERRAN"
and instead of "KERRAN" it returns "kerran". Func at the place {:string func
simply not called.
Did I do something wrong?The docs for this part are ahead of the release, plan is to release 0.8.0 n the next few days. If you know how to depend on the latest commit of malli, you can test that too.
Got it. Thank you a lot!