Hi Evan. Thanks for the response.

The ClojureScript compiler looks for *.cljs files to compile as 
> ClojureScript.  Hence, at a minimum, the *.clj files that you want to also 
> use from ClojureScript need to be copied (or perhaps symlinked, but that's 
> not what lein-cljsbuild does) to *.cljs files.
>
> A list of namespaces to copy is necessary because not all valid Clojure 
> code is valid ClojureScript code.  There are some fairly substantial 
> differences, and trying to interpret certain Clojure forms as ClojureScript 
> will cause compiler crashes.
>

Right, but if the crossover namespace for my library is defined in its 
project.clj, and I'm importing that library as a dependency into another 
project, it's sort of redundant to repeat information already specified. I 
guess what I hoped for was that crossover namespaces would automatically be 
inherited from dependencies.

On Thursday, 28 March 2013 01:48:48 UTC, Evan Mezeske wrote:
>
>
>> [...] This can't scale well if I need to use dozens of namespaces, some 
>> of which will reference other namespaces and etc.
>
>
> The standard solution here is to just organize all the crossover code into 
> one namespace.  For instance, if you have mycrossover.foo, mycrossover.bar, 
> and mycrossover.bar.baz namespaces, you can use them all with :crossovers 
> [mycrossover].
>

That would be much better — to just have to specify the "root" namespace of 
the crossover code — but for me it doesn't work.

 When I change ":crossovers [libtest.core]" to ":crossovers [libtest]" and 
compile, I get:

*WARNING: Unable to find crossover:  libtest*
*WARNING: Unable to find crossover:  libtest*

Any ideas why?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to