Fork me on GitHub
#leiningen
<
2020-04-23
>
mikerod22:04:00

@nikolavojicic it’s a clj feature that is a global dynamic var. it isn’t able to distinguish between your ns’s and those you require while compiling them.

👍 4
mikerod22:04:20

You could probably consider just filtering the warning output perhaps if you wanted less noise. But not built in.

andy.fingerhut22:04:06

One can put (set! **warn-on-reflection** true) into a single file with one namespace, and it affects only the compilation of that namespace. I do not know exactly how Leiningen treats the value of the :global-vars key, but it apparently by default applies it equally to all files being compiled, somehow.

👍 4
Alex Miller (Clojure team)22:04:56

it's just bound higher in the stack

Alex Miller (Clojure team)22:04:49

when you put it in the file it's only on the stack during the load of that file