下面是一个典型的堆栈跟踪:
#error {
:cause "No implementation of method: :put! of protocol: #'clojure.core.async.impl.protocols/WritePort found for class: clojure.lang.PersistentArrayMap"
:via
[{:type java.lang.IllegalArgumentException
:message "No implementation of method: :put! of protoco
我正在尝试使用Clojure doc函数获取文档,但无法从REPL获得文档(我使用的是Emacs和SLIME)。下面的序列描述了正在发生的事情(每一行后面紧跟错误消息):
gaidica.core> (doc first)
; Evaluation aborted.
Unable to resolve symbol: doc in this context
[Thrown class java.lang.Exception]
gaidica.core> (clojure.core/doc first)
; Evaluation aborted.
No such var:
正如中所述,可以为它们指定一个名称。在堆栈跟踪中非常有用的内容。
(defmethod foo "a" name-of-method [params] "was a")
将name-of-method替换为字符串时。我得到以下错误:
:cause "Call to clojure.core/fn did not conform to spec."
:data #:clojure.spec.alpha{:problems ({:path [:fn-tail :arity-1 :params],