Clojure 无法使用LightTable连接到compojure应用程序
我刚刚在《Clojure的Web开发》一书之后运行了“lein new compojure应用程序留言簿”。这本书通过light table连接到我的Clojure项目。然而,当我尝试这一点时,我得到了以下错误,这对我来说毫无意义 您的错误 对于搜索引擎,以下是错误相关部分的副本:Clojure 无法使用LightTable连接到compojure应用程序,clojure,leiningen,lighttable,Clojure,Leiningen,Lighttable,我刚刚在《Clojure的Web开发》一书之后运行了“lein new compojure应用程序留言簿”。这本书通过light table连接到我的Clojure项目。然而,当我尝试这一点时,我得到了以下错误,这对我来说毫无意义 您的错误 对于搜索引擎,以下是错误相关部分的副本: Error loading lighttable.nrepl.handler: java.lang.RuntimeException: Unable to resolve var: reader/*alias-map
Error loading lighttable.nrepl.handler: java.lang.RuntimeException: Unable to resolve var: reader/*alias-map* in this context
原因
Lighttable已升级为使用更新的工具。reader
我找到了两个资源:
lein clean
就解决了这个问题
如果lein clean
无法为您解决此问题,那么以下是论坛提供的扩展解决方案:
在project.clj中。替换
[compojure“1.1.6”]
与
[compojure“1.1.6”:排除[org.clojure/tools.reader]]
并添加到:依赖项列表
[org.clojure/tools.reader“0.7.10”]
原因似乎是LightTable希望看到这种版本的
tools.reader,但Compojure引入了0.7.3版
使用此解决方案后,您可能希望再次运行
lein clean
。我只需运行lein clean