core-typed

Setzer22 2022-09-29T08:59:01.907179Z

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?

2022-09-29T14:49:35.552999Z

@jsanchezf oh dear, there was another file test/typed_example/malli_type_providers.clj that was shadowing src/typed_example/malli_type_providers.clj!

2022-09-29T14:50:42.398019Z

just pushed a fix, please try again.

Setzer22 2022-09-29T16:06:06.437849Z

Ah! Glad to know I wasn't crazy 😄

Setzer22 2022-09-29T16:09:13.426099Z

It works 🎉

🎉 1
Setzer22 2022-09-29T09:07:04.596309Z

Doesn't seem to have anything to do with the malli integration. Just in case, I tried to add a normal annotation with (t/ann foo [Number -> Number]) and that didn't change anything