I have Clojure code and evaluate it, and then intern it into a var:
(let [x (binding [*ns* my-ns] (eval m-code))]
(intern my-ns my-sym x)) ; my-sym was declared beforehand.
But when an error occurs within x, the trace makes no reference to x:
my-ns/eval27298/fn--27299
...
I duplicated the metadata of a more "standard" var, but this does not change the stack trace:
(alter-meta! my-var #(assoc % :line 1 :column 1 :file "my_ns.clj" :name my-sym :ns my-ns))
If not the metadata, what is used to determine the stack trace?