Playing around with pinot getting a "goog.dom.query" namespace never provided

299 views
Skip to first unread message

Folcon

unread,
Oct 10, 2011, 10:13:01 AM10/10/11
to clj-...@googlegroups.com
Hey Everyone,

I'm getting a:

SEVERE: /F:/Coursework/Code/clojure/magic/resources/public/cljs/pinot/dom.js:7: ERROR - required "goog.dom.query" namespace never provided
goog.require('goog.dom.query');


I've followed the instruction:
For the best development experience, try out cljs-watch. If you do, you'll need to replace the goog.jar in your CLOJURESCRIPT_HOME/lib with the goog-jar.jar that comes down as a dependency with pinot.

I'm wondering if this is normal? Or have I done something markedly silly? Just trying out clojurescript.

Hopefully someone can help :)...

Regards,
Folcon

Chris Granger

unread,
Oct 10, 2011, 6:09:03 PM10/10/11
to clj-...@googlegroups.com
Hey hey,

That error comes from either not having the goog-jar.jar in the right place, or still having the original goog.jar somewhere. Can you list the contents of the lib dir?

Cheers,
Chris.

Folcon

unread,
Oct 10, 2011, 6:53:21 PM10/10/11
to clj-...@googlegroups.com
Hey Chris,

The clojurescript/lib folder contains:
clojure.jar
compiler.jar
goog.jar
goog-old.jar <- this is the old google jar
js.jar

Thanks for the help!

Regards,
Folcon

Chris Granger

unread,
Oct 10, 2011, 7:00:48 PM10/10/11
to clj-...@googlegroups.com
Ah, you have to actually remove it :) They have the same files (a sad necessity) and so they can get into some weird conflicts.

Cheers,
Chris.

Folcon

unread,
Oct 10, 2011, 7:50:37 PM10/10/11
to clj-...@googlegroups.com
Ah, right.

Regards,
Folcon

Dave Sann

unread,
Dec 22, 2011, 3:27:53 AM12/22/11
to clj-...@googlegroups.com
Hi Chris,

Did you need to do anything in particular to produce this jar file? 
I have tried to build a similar jar file with the latest closure libraries and always see this error.

I find this odd, because the latest libraries already include the file goog.dom.query.js...

Cheers

Dave

Dave Sann

unread,
Dec 22, 2011, 4:34:34 AM12/22/11
to clj-...@googlegroups.com
Ok, after a lot of trials, I did the following, which seems to work. 

This is fiddly but, In case anyone is interested...



You need to jar the third party libs. (you will have to edit scripts/bootstrap)

then, 

copy all directories under third_party/goog  into goog.jar under goog/

Edit goog/deps.js and globally replace "../../third_party/closure/goog/" with the empty string.

This corrects the dependency paths so the third party libs can be found.

That works, as far as I can tell so far

Dave


Dave Sann

unread,
Dec 22, 2011, 5:15:29 AM12/22/11
to clj-...@googlegroups.com
If anyone wants to use this lib. It is here.


It is currently this version of the closure library : closure-library-20111110-r1376.zip

Clone and replace goog.jar in your clojurescript_home/lib

I may remove this repo - if I need the space in future.

Cheers

Dave

Reply all
Reply to author
Forward
0 new messages