Clojure and Spec on Heroku: “Unable to resolve symbol: bigdec?”

ⅰ亾dé卋堺 提交于 2019-12-11 17:42:01

问题


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:


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?



来源:https://stackoverflow.com/questions/49297427/clojure-and-spec-on-heroku-unable-to-resolve-symbol-bigdec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!