I think you are using the wrong (async/go ...). Make sure it is (cljs.core.async.macros/go ...) not (clojure.core.async/go ...).
On Thursday, April 2, 2015 at 8:14:07 PM UTC+2, Chris Perkins wrote: > I'm having trouble with this macro, and wondering whether I am doing > something wrong: > > (defmacro foobar [] > `(let [x# 42] > (async/go x#))) > > It works fine in Clojure, but if I use it in Clojurescript, compilation fails > (stacktrace below). > > User error? Or is this a bug in core.async? > > thanks, > > - Chris > > > > Caused by: clojure.lang.ExceptionInfo: Could not resolve var: x__6964__auto__ > {:file > "/private/var/folders/1k/fdpgt6c550lg17f9tfkts9b4lr05vz/T/form-init31477330 > 25733783764.clj", :var x__6964__auto__} > at clojure.core$ex_info.invoke(core.clj:4403) > at > clojure.tools.analyzer.passes.jvm.validate$eval2831$fn__2833.invoke(validate.clj:32) > at clojure.lang.MultiFn.invoke(MultiFn.java:227) > at > clojure.tools.analyzer.passes.jvm.validate$validate.invoke(validate.clj:240) > at > clojure.tools.analyzer.jvm$run_passes$analyze__4016$fn__4017.invoke(jvm.clj:422) > at clojure.tools.analyzer.ast$postwalk.invoke(ast.clj:98) > at clojure.tools.analyzer.ast$postwalk$walk__1251.invoke(ast.clj:97) > at > clojure.tools.analyzer.ast$eval1225$fn__1226$fn__1228.invoke(ast.clj:51) > at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:63) > at clojure.core.protocols$fn__6093.invoke(protocols.clj:98) > at > clojure.core.protocols$fn__6057$G__6052__6066.invoke(protocols.clj:19) > at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31) > at clojure.core.protocols$fn__6076.invoke(protocols.clj:60) > at > clojure.core.protocols$fn__6031$G__6026__6044.invoke(protocols.clj:13) > at clojure.core$reduce.invoke(core.clj:6289) > at clojure.tools.analyzer.ast$eval1225$fn__1226.invoke(ast.clj:53) > at clojure.lang.MultiFn.invoke(MultiFn.java:231) > at clojure.tools.analyzer.ast$update_children.invoke(ast.clj:73) > at clojure.tools.analyzer.ast$postwalk.invoke(ast.clj:98) > at clojure.tools.analyzer.ast$postwalk.invoke(ast.clj:95) > at > clojure.tools.analyzer.jvm$run_passes$analyze__4016.invoke(jvm.clj:413) > at clojure.tools.analyzer.jvm$run_passes.invoke(jvm.clj:402) > at clojure.tools.analyzer.jvm$analyze$fn__4025.invoke(jvm.clj:463) > at clojure.lang.AFn.applyToHelper(AFn.java:152) > at clojure.lang.AFn.applyTo(AFn.java:144) > at clojure.core$apply.invoke(core.clj:624) > at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1862) > at clojure.lang.RestFn.invoke(RestFn.java:425) > at clojure.tools.analyzer.jvm$analyze.invoke(jvm.clj:458) > at > clojure.core.async.impl.ioc_macros$state_machine.invoke(ioc_macros.clj:1062) > at clojure.core.async$go.doInvoke(async.clj:384) > at clojure.lang.RestFn.applyTo(RestFn.java:142) > at clojure.lang.AFunction$1.doInvoke(AFunction.java:29) > at clojure.lang.RestFn.applyTo(RestFn.java:137) > at clojure.core$apply.invoke(core.clj:628) > at cljs.analyzer$macroexpand_1.invoke(analyzer.clj:1595) > ... 114 more -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.