cursive

2025-12-16T23:08:45.405179Z

I have some Malli specs in my Clojure project and in some cases I get the kondo squiggle when my args are out of spec and in others I do not. In both cases the input maps are well-defined maps with required keys. Is this a known issue? Is there way to refresh kondo or some other setting?

2025-12-16T23:29:27.521919Z

I suspect it has something to do with how this file is generated:

2025-12-16T23:29:44.447839Z

That config.edn file seems out of date. Is there a command to regenerate it?

2025-12-16T23:35:04.422849Z

Ah, I think https://github.com/metosin/malli?tab=readme-ov-file#clj-kondo is the secret.

(require '[malli.clj-kondo :as mc])
=> nil
(mc/emit!)
=> nil
If anyone knows, can I just do the above, or do I need to (mi/instrument!) as well?

cfleming 2025-12-17T00:12:12.543329Z

That's outside the scope of my malli knowledge sorry, I'm not sure how to provoke that update. I think refreshing the project in the deps toolwindow should cause Cursive to regenerate the kondo config, but IIRC for the malli types stuff there's a way to have them generated automatically.

👍 1
steveb8n 2025-12-17T00:24:47.757269Z

I'm pretty sure the later versions of Malli have improved the automatic emit of Kondo config when using md/start

ikitommi 2025-12-17T00:30:56.002379Z

yes, please check malli.dev/start! - should start a process to keep malli & kondo types at sync. Calls both instrument! and emit!

2025-12-17T00:45:41.554559Z

Cool, thanks!