Clojure and Spec on Heroku: “Unable to resolve sym

2019-08-24 08:31发布

I'm trying to run a Clojure uberjar on Heroku that uses Spec, but it throws:

2018-03-15T09:57:33.361093+00:00 app[web.1]: at clojure.lang.Var.invoke(Var.java:381) 2018-03-15T09:57:33.361140+00:00 app[web.1]: at clojure.lang.RT.doInit(RT.java:487) 2018-03-15T09:57:33.361173+00:00 app[web.1]: at clojure.lang.RT.(RT.java:336) 2018-03-15T09:57:33.361282+00:00 app[web.1]: at clojure.main.(main.java:20) 2018-03-15T09:57:33.361572+00:00 app[web.1]: Caused by: java.lang.RuntimeException: Unable to resolve symbol: bigdec? in this context, compiling:(clojure/spec/gen/alpha.clj:132:4)

I think this is related to the alpha-ness of Spec, but I don't know which versions I'm supposed to bump.

1条回答
Fickle 薄情
2楼-- · 2019-08-24 09:00

bigdec? was removed before 1.9 got released:

https://dev.clojure.org/jira/browse/CLJ-2259

Are you using an older version of Spec together with clojure 1.9 proper?

查看更多
登录 后发表回答