I have another data point to add to my testing regarding this problem. Defining a pretty minimal little clojure test program:
(ns cljstest.main (:require [cljs.closure :as closure])) (defn -main [& m] (closure/build "src/mycljs/hello.cljs" {:optimizations :simple :output-dir "out/" :output-to "out/ bootstrap.js"}) (println "Hello world.")) Running this with "lein run" fails as I've described earlier in this thread. For the hell of it, I removed all the compiled code in the "classes" dir, and simply started a java repl in the same dir, with the same classpath leiningen would use EXCEPT I removed the "classes" part, and then inside the repl run: (use 'cljstest.main) (-main) Then everything works just fine. It definitively looks like something is wonky in the clojurescript compiler that requires it to run in some kind of repl environment (or depends on some kind of sideeffect of the repl environment). Thanks, Marius K. -- 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