Hello! Is it possible to disable load of clojure.spec.alpha completely?
Will try to provide minimal repro during weekend.
clojure.spec.alpha
is not part of Clojure, so what do you mean by “disable load”?
it is not possible.
@hkjels it seems java11 dynamically loads clojure.spec.alpha which results in error: https://clojurians.slack.com/archives/C03S1KBA2/p1609747607299900
strange, clojure.walk is not requiring clojure.spec.alpha
For me the strangest thing is that even after removing clojure.walk dynamic class load requires spec.alpha which results in different error. Never seen it before.
but spec.alpha is require clojure.walk …
and clojure compiler is using clojure.spec.alpha there https://github.com/clojure/clojure/blob/05c193c031aa3a825ebb824b4135e36a79693f51/src/jvm/clojure/lang/Compiler.java#L6961
See -Dclojure.spec.skip-macros=true
https://clojure.org/guides/faq#skip_macros for turning off macro checking
spec depends on clojure, and clojure depends on spec. so there is actually a cycle here conceptually.
@alexmiller tried to set -Dclojure.spec.skip-macros=true
without results.
Here is the example:
https://github.com/ekoontz/holy-lambda/blob/repro-spec/examples/hello-lambda/project.clj
Wondering why Clojure compiler macroexpands on runtime