Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure 无法使用LightTable连接到compojure应用程序_Clojure_Leiningen_Lighttable - Fatal编程技术网

Clojure 无法使用LightTable连接到compojure应用程序

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

我刚刚在《Clojure的Web开发》一书之后运行了“lein new compojure应用程序留言簿”。这本书通过light table连接到我的Clojure项目。然而,当我尝试这一点时,我得到了以下错误,这对我来说毫无意义

您的错误 对于搜索引擎,以下是错误相关部分的副本:

Error loading lighttable.nrepl.handler: java.lang.RuntimeException: Unable to resolve var: reader/*alias-map* in this context
原因 Lighttable已升级为使用更新的
工具。reader

我找到了两个资源:

  • 一个你可能会觉得有用的应用程序
  • A涵盖该问题(在上面的github问题中提到)
  • 总结的解决方案 一些人通过在他们的项目目录中运行
    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