This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-29
Channels
- # announcements (6)
- # babashka (23)
- # beginners (15)
- # biff (15)
- # calva (17)
- # clara (5)
- # clj-kondo (41)
- # cljdoc (2)
- # cljs-dev (67)
- # cljsrn (18)
- # clojure (19)
- # clojure-europe (25)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojurescript (26)
- # core-typed (6)
- # cursive (15)
- # data-science (30)
- # datahike (1)
- # datomic (18)
- # docker (6)
- # emacs (10)
- # events (2)
- # graalvm (15)
- # graphql (5)
- # hugsql (4)
- # jobs-discuss (1)
- # joker (7)
- # lsp (36)
- # malli (28)
- # off-topic (46)
- # other-languages (1)
- # pathom (5)
- # pedestal (6)
- # polylith (5)
- # reitit (2)
- # releases (1)
- # rewrite-clj (63)
- # shadow-cljs (7)
- # spacemacs (16)
- # squint (6)
- # tools-deps (6)
- # xtdb (13)
Hey! I'm trying out typed clojure (and in particular the new malli support), but I must be having some misconceptions about how typed clojure works, because I can't seem to get any typed errors. What I did was:
• Download the main repository
• Launch an nrepl session for the project in typedclojure/examples/malli-type-providers
using clj -A:dev -A:nREPL
• Connect to the running repl with CIDER (using cider-connect
)
• Navigate to the namespace typed-example.malli-type-providers
. Confirm the example works fine and there are no type errors.
• (here's where the problems start)
• Try to introduce a trivial change like calling (foo "a")
, save file, type checking doesn't work (no type errors)
• Try to introduce a (defn test [] (foo "hello"))
, re-evaluate the same buffer, re-run type checks (still no type errors)
So I guess my question is: What do I need to do for typed clojure to see my changes? Is there some sort of caching going on?
@UP0Q30S10 oh dear, there was another file test/typed_example/malli_type_providers.clj
that was shadowing src/typed_example/malli_type_providers.clj
!