每当我尝试p
在函数中包含 Timbre 语句时,都会出现错误:
项目.clj
(defproject sketch "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[com.taoensso/timbre "3.1.1"]])
核心.clj
(ns user (:require [taoensso.timbre :as timbre]))
(timbre/refer-timbre)
(defn tst [a]
(p :tf (+ a a)))
输出(苹果酒/nrepl)
Unable to resolve symbol: p in this context, compiling:(NO_SOURCE_PATH:2:3)
但其他音色功能/宏喜欢profile
并且spy
工作正常。