Why are some Google Closure library files not available in Clojurescript?

103 views
Skip to first unread message

Conrad

unread,
Aug 12, 2011, 1:47:23 PM8/12/11
to Clojure
Hi everyone- I'm loving clojurescript and am trying to create a test
app with it. This test app was going to use goog.storage, but for some
reason this library doesn't appear to be available when I install
clojurescript (unlike goog.dom, goog.events, etc. which work fine)

You can see this library listed in the Google Closure docs:
http://closure-library.googlecode.com/svn/docs/index.html

For some reason, when I bootstrap clojurescript as per Rich's
instructions this library is missing (i.e. I'm missing the directory
"~/clojurescript/closure/library/closure/goog/storage")

One guess I have as to why this is missing is that clojurescript isn't
installing the latest version of the closure library, since
goog.storage appears to be a more recent addition. Does anyone know if
this is the reason for my issue? Is there any way I can safely update
the version of the closure library? If the closure library is out of
date on purpose, does anyone know when support of a more recent
closure library version is planned?

Thanks!

Conrad Barski

Conrad

unread,
Aug 12, 2011, 2:11:54 PM8/12/11
to Clojure
On further inspection, the latest closure library download doesn't
have this directory either, so the issue I'm having (whatever it is)
is a closure issue, not related to clojurescript. Therefore, it is off-
topic for this forum and I will find my answer elsewhere- Thanks!

Conrad

unread,
Aug 12, 2011, 2:34:45 PM8/12/11
to Clojure
In case anyone wants to know what the answer is: goog.storage was
added with closure library revision 888, but the version used in
clojurescript is revision 790. This is because Google hasn't released
any pre-packaged versions of the closure library since March.

On Aug 12, 1:47 pm, Conrad <drc...@gmail.com> wrote:

Daniel Renfer

unread,
Aug 12, 2011, 4:35:21 PM8/12/11
to clo...@googlegroups.com


Have you tried updating the closure library? Any problems? I ran into
a similar issue when I was trying to use their Websocket code. It
seems that their docs are for the head of the project.

It had me very confused, especially since I was just getting started
with ClojureScript.

Conrad

unread,
Aug 12, 2011, 5:14:58 PM8/12/11
to Clojure
When I tried that, it still didn't seem to recognize the new
namespaces. My guess is that clojurescript doesn't determine closure
library namespaces dynamically, but has a hardcoded list of them
somewhere (but I never investigated further...)

Hubert Iwaniuk

unread,
Aug 14, 2011, 7:02:22 AM8/14/11
to clo...@googlegroups.com
Hi Conrad,

You can give a try to my fork: https://github.com/neotyk/clojurescript/tree/35-cl-head
And vote on a ticket: http://dev.clojure.org/jira/browse/CLJS-35

I'm using local storage as well as websockets.

Cheers,
Hubert.

> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

Reply all
Reply to author
Forward
0 new messages