Yes, I did. But my code was a mess, I haven’t managed to finish a minimal example yet. I tried it in REPL actually, but as I compiled my code and see errors for so many times, I became uncertain.
Like told by @plexus , need that thing in the same namespace.
(ns server.main
(:require-macros [server.macros :refer [some-macro]])
(:require [server.foo]))
; server.foo is required... or compiler will warn
(defn main! []
(some-macro "Hello!"))
I remembered in my previous demos, it was more complicated because I got exceptions even with (:require [server.foo]). I have to write (:require [server.foo :refer [bar]]) to make it work. Strange. Maybe fake memory…