Fork me on GitHub
#clojure-dev
<
2017-05-03
>
seancorfield00:05:48

FYI, with Clojure 1.9.0 Alpha 16, in a bare boot repl (outside a project), I see this odd behavior:

boot.user=> (doc pr-str)
-------------------------
clojure.core/pr-str
([& xs])
  pr to a string, returning it

java.lang.ClassNotFoundException: clojure.spec.alpha$get_spec
  java.lang.NoClassDefFoundError: clojure/spec/alpha$get_spec
Can anyone else repro? (and, clearly, it is available since I can require that ns and use the function just fine — this seems like an AOT-related glitch?)

seancorfield01:05:24

Ah, interesting. I haven’t noticed any other problems with Alpha 16 in regular application contexts. Yet.

alexmiller03:05:39

This is the same problem and is basically a problem with mixing source and AOT compiled code (CLJ-1544). I released a new version of spec.alpha that should fix it (by AOT compiling spec). The new version is 0.1.108.

seancorfield04:05:57

Thanks @alexmiller -- we'll have to explicitly rely on that to solve the problem? Until Alpha 17 of core?

seancorfield05:05:55

I can confirm that boot -d org.clojure/spec.alpha:0.1.108 repl does indeed not show that problem!