Update: thanks to a comment at the bottom of one of the files in the clojurescript project <https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L1828>, I think I know how to fix this. Instead of a list, I should have used a vector. I don't know why this works, I imagine there is a seq? somewhere it shouldn't be but I really don't know. -Zack
On Monday, June 29, 2015 at 9:29:42 PM UTC-4, Zack Maril wrote: > > Hello, > > I'm trying to use cljs.build.api/build to compile dynamically generated > clojurescript into one javascript string. I've been running into many weird > errors and I'm quite certain I'm doing something wrong. The simplest test > case I've found is the following: > > (cljs.build.api/build '((ns test.test)) {:optimizations :advanced}) > > The above prints a parse error from closure I think and then returns a > string that contains generic javascript about Math but nothing else: > ERROR: JSC_PARSE_ERROR. Parse error. primary expression expected at > test.test line 3 : 1 > > Are there other options I am supposed to be passing in? Do I have the > nesting wrong on the structures? I've tried a list like '(+ 1 1) instead > but the string output doesn't look to be doing any work and that level of > nesting doesn't seem to be what is implied by cljs.closurei/compile-for-seq > with it's forms argument. Any what is going on? > -Zack > -- 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/d/optout.