[英]LightTable not connecting/evalling a Clojure project
剛開始一個新的Clojure項目並遇到一些問題,使LightTable無法正常運行。 應用程序/ REPL與lein ring server
/ lein repl
等一起旋轉良好,但是嘗試連接到lein repl
中的任何文件只會使藍色旋轉器處於旋轉狀態……即使它說已連接,也仍會旋轉。
這些是我的部門(使用LightTable 1.5.4-從1.4.something進行了相同的更新)
(defproject clollo "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.5.1"]
[compojure "1.1.5"]
[trello "0.1.1-SNAPSHOT"]]
:plugins [[lein-ring "0.8.5"]]
:ring {:handler clollo.handler/app}
:profiles
{:dev {:dependencies [[ring-mock "0.1.5"]]}})
有問題的文件是
(ns clollo.handler
(:use compojure.core)
(:require [compojure.handler :as handler]
[compojure.route :as route]
[trello.core]))
(defroutes app-routes
(GET "/" [] "Hello Wo1rld")
(route/resources "/")
(route/not-found "Not Found"))
(def app
(handler/site app-routes))
(+ 1 1) ;; test LightTable eval!
然后我嘗試擺脫調試的所有要求等,所以我有了一個新文件
(ns clollo.ihopethisworks)
(+ 1 1) ;; this doesn't work either
有任何想法嗎? 正如我所說,LightTable的InstaRepl
工作在自己的罰款,並LightTable 被連接到該項目的project.clj
在連接窗口。 嘗試評估任何事物時,只需旋轉即可。
謝謝!
通過測試您的示例代碼,似乎在[trello.core]
文件中的[trello.core]
require項引起了問題。 該庫似乎在Light Table中初始化clj-http
有問題。
另外,LT v0.5.x還存在一個問題,在某些情況下,工作指示器在操作完成后仍會繼續旋轉。 您可以使用Statusbar: Reset working indicator
命令來停止它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.