This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-29
Channels
- # announcements (2)
- # babashka (18)
- # beginners (42)
- # calva (56)
- # chlorine-clover (35)
- # clara (9)
- # clj-http (1)
- # clj-kondo (19)
- # cljs-dev (8)
- # clojure (14)
- # clojure-europe (23)
- # clojure-france (7)
- # clojure-norway (6)
- # clojure-uk (3)
- # clojurescript (37)
- # community-development (3)
- # cursive (29)
- # datomic (3)
- # emacs (10)
- # events (2)
- # fulcro (77)
- # hyperfiddle (2)
- # introduce-yourself (4)
- # joker (1)
- # lsp (40)
- # malli (52)
- # meander (7)
- # missionary (16)
- # off-topic (3)
- # pedestal (1)
- # re-frame (5)
- # reitit (38)
- # releases (1)
- # shadow-cljs (4)
- # tools-build (18)
- # tools-deps (1)
- # xtdb (8)
would it be possible to handle the Plumatic Schema type hints with different color, e.g. greyed out? testing how that would work with malli, something like this:
It would require some work, but it could be done, yes. But it would only work when the schema is in a known location relative to a macro form like your defn examples. I think in Malli the types are often in arbitrary datastructures, right?
95% of the time, those hints would be in same place as with schema, just different defn
and fn
macros.
actually, I think it's more 98%. Currently setting the (experimental) malli (plumatic-style) defn munually as resolve as schema.core/defn
, but once it gets released, could the mappings be shipped with Cursive itself?
Yes, for sure. Let me know when they’re nailed down, and if there are any differences from Schema (or any differences you’d like to introduce)
It’s malli.experimental/defn
and works identically to schema.core/defn
. Might move to another ns when 1.0.0 ships, but not likely to happen any time soon.
I noticed in the Cognitect Datomic docs a pretty nice trick with dereferencing def
s: when you use @(def )
(instead of just (def ...)
) , and you evaluate it, it not only creates a var but also evaluates it, showing the value of the var in the repl. The thing is the Cursive complains about it and it doesn't look good. Is there a way to get away of this warning?
I don’t think there is, no - if you could file an issue I’ll see if I can fix that.
I created the issue here: https://github.com/cursive-ide/cursive/issues/2630
works really nice! thanks @U04V15CAJ @UQTHDKJ8J
This plugin has now been released to the marketplace: https://plugins.jetbrains.com/plugin/18108-clojure-extras/
Consider giving @UQTHDKJ8J's awesome plugin a review here: https://plugins.jetbrains.com/plugin/18108-clojure-extras/
Hi guys! Is there an extra config to enable clj-kondo inspection because not work for me (only evalution form)
@UHZPYLPU1 if you go to "tools" then you will find "clojure-extras" and there is a checkbox
Not sure what's going on though. Perhaps @UQTHDKJ8J will help soon
Hi guys, sorry to hear that, i'll improve the error messages/logging to make it easier to understand what is going on in this case
No worries @UQTHDKJ8J ! Thanks for this very cool plugin and thanks @U04V15CAJ for clj-kondo!
This plugin has now been released to the marketplace: https://plugins.jetbrains.com/plugin/18108-clojure-extras/