我在 heroku 上托管一个 webnoir 网站,在重命名命名空间和文件后,我在日志中收到以下错误:
Warning: coercions not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic coercions or change the name.
我在网上发现一些内容说我应该尝试 lein clean
命令。有谁知道如何实现这一目标? Heroku 帮助没有指明执行此操作的命令。
如果我可以通过它做一些事情,我正在使用cloud9作为我的ide/heroku集成。否则我也有 Heroku 工具带。
最佳答案
此错误可能不是问题:这是因为名称被星号包围,例如 *coercions*
预计是动态的,但没有 ^:dynamic
如果您想动态重新绑定(bind)它,则需要元数据标记。
除非你真的想动态地重新绑定(bind)它,否则不会有任何问题。
由于这是编译器警告,我不认为 lein clean
将会产生任何影响 - 无论您是否使用干净的构建,您都会收到相同的警告。
关于Heroku + Clojure (webnoir),如何做到lein clean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11803895/