You can't load CLJS namespaces from clojure, you'll have to fully-qualify
CLJS symbols inside the emitted macro code, eg
https://github.com/clojure/core.async/blob/master/src/main/clojure/cljs/core/async/macros.clj?MobileOptOut=1#L16


On Mon, Aug 25, 2014 at 4:15 PM, Yehonathan Sharvit <[email protected]>
wrote:

> I would like to write  a macro that calls a cljs function.
> The problem is that the macro is defined inside a clj file and when I
> require the namespace that contains the cljs code I receive the following
> compilation error:
>
>
>
>
> Caused by: java.io.FileNotFoundException: Could not locate
> user__init.class or user.clj on classpath:
>
>
> This is my code snippet:
>
>
> (ns cljs_explore.macros
>   (:require  [user :as user]))
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to