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 clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/pgqaI90dkiM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
Can you be a little more clear as to what you are doing? If you are literally trying to call a ClojureScript function from Clojure, it will not work. However, it is possible to resolve ClojureScript symbols from Clojure for the purposes of macro code generation but you'll need to use the ClojureScript analyzer to do this.
For example I have:
a cljs namespace
(ns user.my-cljs)
(defn foo [] 4)
a clj namespace
(ns my-macros)
(defmacro my-macro [] my-cljs/foo)
What is the best way to access my-cljs/foo from inside the macro?
What do you mean by "access"? Do you mean the actual source code for the symbol?