Welcome! Please see the About page for a little more info on how this works.

+4 votes
in Clojure by

I often find myself adding :verbose to a (require) or (use) clause of my (ns) in order to debug problems (especially macros, or bad namespace declarations). It would be very nice if I could define a JVM system property (say -Dclojure.load-verbosely=true) to default loading-verbosely to true for a REPL session, or as part of a build.

Sometimes I just like to see that namespaces load as a measure of progress, when starting an application, or when running a set of tests.

by
I would love to see this implemented or patched.
by
If I'm being choosey, I'd love to see it respond to `set!` as well lol. I'm not sure what makes `*warn-on-reflection*` special in that regard, but this feels similar.

3 Answers

0 votes
by

Comment made by: tsdh

This patch implements the suggested feature.

The new system property is called {{clojure.core.loading-verbosely}} in analogy to the existing {{clojure.compile.warn-on-reflection}}.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1112 (reported by hlewisship)
0 votes
by

This would be indeed very helpful, especially in situations when the problem manifests only in the production build(s) like uberjar.

...