Fork me on GitHub
Karol Wójcik11:01:05

Hello! Is it possible to disable load of clojure.spec.alpha completely?


clojure.spec.alpha is not part of Clojure, so what do you mean by “disable load”?


it is not possible.

Karol Wójcik13:01:23

@U0B1SDL67 it seems java11 dynamically loads clojure.spec.alpha which results in error:


strange, clojure.walk is not requiring clojure.spec.alpha

Karol Wójcik13:01:26

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 …

Alex Miller (Clojure team)14:01:06

spec depends on clojure, and clojure depends on spec. so there is actually a cycle here conceptually.

Karol Wójcik14:01:12

@U064X3EF3 tried to set -Dclojure.spec.skip-macros=true without results. Here is the example: Wondering why Clojure compiler macroexpands on runtime

Karol Wójcik16:01:25

Will try to provide minimal repro during weekend.

Alex Miller (Clojure team)14:01:24

See -Dclojure.spec.skip-macros=true for turning off macro checking