[英]Evaluation in Clojure REPL with CounterClockwise and Eclipse
[英]How is it possible to run the doc-command in a CounterClockwise-REPL in Eclipse?
是否可以在Eclipse的REPL中啟動文檔(我正在使用CounterClockwise-Plugin)。 我嘗試過
(clojure.repl/doc doc)
但這會拋出:
ClassNotFoundException clojure.repl java.net.URLClassLoader$1.run (URLClassLoader.java:366)
當我從終端啟動REPL時(例如,使用clojure
或lein repl
),這可以正常工作。 我已經使用了標准名稱,所以我真的不明白為什么它不起作用。
clojure.repl
命名空間隨Clojure一起提供,但並不總是在范圍內。
要獲得與普通repl相同的行為,可以執行以下操作:
(use 'clojure.repl)
或者,更有說服力的:
(require '[clojure.repl :as repl])
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.