Re: How to refer to nodejs Buffer in clojurescript ?

2011-12-13 Thread sunng
Thank you. It works now. However, I think this is an issue of compiling clojurescript to nodejs. *Buffer* is a nodejs specific function like *require* (a nodejs function). So maybe we'd better use it like the way we use require: (cljs.nodejs/require). When compiled to nodejs, require is added to t

Re: {ANN} clojure-control 0.2.1 released.

2011-10-31 Thread sunng
A snapshot of lein-control 0.2.1 (which ships clojure-control 0.2.1) has been pushed to clojars. You can use these new features of clojure-control with your control file. Add lein-control to your dev-dependencies like: :dev-dependencies [[lein-control "0.2.1-SNAPSHOT"]] For more information, pl

Re: Is clojure.data.json compatible with 1.3?

2011-10-11 Thread sunng
Thank you for your response. Finally I found it has something to do with the autodoc plugin. Although I have exclude clojure and clojure-contrib from the dev- dependencies, it seems there is still strange effect with the plugin. I have no idea about that. On Oct 11, 8:25 pm, Stuart Sierra wrot

Re: Is clojure.data.json compatible with 1.3?

2011-10-11 Thread sunng
Are you sure ? I got dump when using clojure.data.json 0.1.1 with clojure 1.3 Caused by: java.lang.NoSuchMethodError: clojure.lang.Numbers.isNeg(I)Z at clojure.data.json$read_json_reader.invoke(json.clj:114) at clojure.data.json$fn__912.invoke(json.clj:175) at clojure.data.

Re: Problem when use google closure library when use optimizations (simple/advanced)

2011-08-04 Thread sunng
I think I got the reason. I should use goog.net.xmlhttpfactory instead of goog.net as required namespace. On 8月4日, 下午9时41分, sunng wrote: > Hi all, > > I have a problem when compiling my code into optimized js: > Aug 04, 2011 9:34:10 PM > com.google.javascript.jscomp.LoggerError

Problem when use google closure library when use optimizations (simple/advanced)

2011-08-04 Thread sunng
Hi all, I have a problem when compiling my code into optimized js: Aug 04, 2011 9:34:10 PM com.google.javascript.jscomp.LoggerErrorManager println SEVERE: /home/sun/projects/rageviewer/out/rageviewer/utils.js:3: ERROR - required "goog.net" namespace never provided goog.require('goog.net');