:require does load JS dependencies from jars, as long as the JS files in question have goog.provide/goog.require declarations corresponding to their classpath position, etc.

For those following along, the cljsbuild issue in question is https://github.com/emezeske/lein-cljsbuild/issues/313, more details to be provided there.

- Chas

On 05/22/2014 05:17 PM, Julien Eluard wrote:
Indeed things look ok when using the require syntax but only if I have JS files as part of current project. It does not work if they come as a jar dependency. Too bad, it was a pretty neat way to package reusable JS libraries. I will follow up with lein-cljsbuild as it looks like I was relying on one of its features.

Thanks!


2014-05-22 16:49 GMT-03:00 David Nolen <[email protected] <mailto:[email protected]>>:

    No idea. There is a change in the latest release to resolve Google
    Closure JS libraries on the classpath via :require, perhaps
    there's a conflict here? If you could do some investigation that
    would be helpful.

    David


    On Thu, May 22, 2014 at 2:01 PM, Julien Eluard
    <[email protected] <mailto:[email protected]>> wrote:

        Hi David,

        I just tried this new release on a codebase using some closure
        based JS library and I now see the following:
        * "WARNING: No such namespace: ..." during compilation
        * "Uncaught Error: Undefined nameToPath for .." when running
        in a browser
        Everything used to work fine with release #2202.

        I am not clear if this is a regression, an incorrect syntax
        usage or the JS files being incorrectly provided to the compiler.

        For info I am using a JS library packaged in a custom jar
        (https://github.com/jeluard/cljs-ol3js) and import the closure
        library with ".. (:import ol.Map ol.View2D)".

        Any thoughts?

        Thanks,
        Julien



        2014-05-22 12:18 GMT-03:00 David Nolen <[email protected]
        <mailto:[email protected]>>:

            ClojureScript, the Clojure compiler that emits JavaScript
            source code.

            README and source code:
            https://github.com/clojure/clojurescript

            New release version: 0.0-2227

            Leiningen dependency information:

            [org.clojure/clojurescript "0.0-2227"]

            Enhancements
            ------------
            * optimized case
            * CLJS-802: Add :pseudo-names compiler option
            * CLJS-795: 10X performance enchancement for multimethods
            * CLJS-801: str macro emits unoptimizable js code
            * CLJS-656: search classpath for goog-style JavaScript
            dependencies

            Fixes
            -----
            * CLJS-792: Implement IReduce on PersistentArrayMap
            * CLJS-804: Binding *print-length* breaks str
            * CLJS-775: Fix cljs.reader cljs.reader parses radix form
            of int literals
            * CLJS-805: add-watch returns map of watch fns instead of
            watched reference
            * CLJS-787: cljs.reader does not read blank string as nil
            * CLJS-784: Fix *Map.-conj for map-entry seqs, that don't
            implement INext
            * CLJS-784: make conj on maps behave as it does in Clojure
            * CLJS-793: fix memoize (non-truthy values don't get cached)
            * CLJS-800: PersistentQueueSeq extended to IPrintWithWriter
-- 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]
            <mailto:[email protected]>.
            To post to this group, send email to
            [email protected]
            <mailto:[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]
        <mailto:[email protected]>.
        To post to this group, send email to
        [email protected]
        <mailto:[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]
    <mailto:[email protected]>.
    To post to this group, send email to
    [email protected]
    <mailto:[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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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