- clojure version: 1.8.0
- leiningen version: 2.7.1
- jdk version: 1.8.0_101
When I require a library, say reagent
(has added in the project dependencies), in the lein repl:
user=> (require '[reagent.core :as r])
nil
The output is nil, which I think it means success. But when I use the r
,say (r/atom 3)
, the repl throw an error says:
CompilerException java.lang.RuntimeException: Unable to resolve symbol: r in
this context, compiling: (/private/var/folders/_y/n3ym4ftj2ld9tl471g_kcv_00000gn/T
/form-init1002540725014588615.clj:1:4923)
That seems strange. Anyone has some idea?
By the way, I can require java and clojure library.
when I use the r
... HOW are you using it? Just typingr
and pressing the enter key in the REPL will cause this error, becauser
is not a symbol. You need to refer to a symbol, like:(r/my-function ...
So, it's hard to say what your problem is without further information. – Josh