Fork me on GitHub
#beginners
<
2015-07-20
>
escherize02:07:17

Hmm, when trying to require core.async I get this behavior:

user=> (require '[clojure.core.async :as a])
CompilerException java.lang.Exception: No namespace: clojure.core.memoize, compiling:(clojure/tools/analyzer/jvm/utils.clj:1:1)

escherize04:07:43

That's with:

[org.clojure/clojure "1.6.0"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]

escherize04:07:01

as the only dependencies in project.clj

robert-stuttaford07:07:18

try adding core.memoize to your deps?

surreal.analysis12:07:42

@escherize: What you wrote works just fine for me in a new project

surreal.analysis12:07:48

Do you have any additional plugins?

surreal.analysis12:07:22

Specifically some around profiling, as the issue is coming from clojure.tools.analyzer.jvm

dottedmag12:07:57

Ah, (identical? 2.0 2.0) is also false. Understood.

surreal.analysis23:07:43

Working with clj-pdf, and I’m not sure the right way to conditionally add a series of elements. Something along the lines of:

(if true
         [[:chunk “List Header"]]
         [[:list {:symbol ""}
           [:chunk {:style :italic} “List Item 1"]]]
         )

surreal.analysis23:07:25

But, only the first form is returned, because the second is what would be returned if the if statement were false