I see what you mean. In fact, if I enter (ns foo) at the REPL instead of (in-ns 'foo), the namespace is "created" in cljs.compiler/namespaces and the compiled JS is output correctly.
On 3 March 2012 12:12, Brenton <[email protected]> wrote: > Thanks Stuart, > > Looks like the problem might be here: > > > https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/repl.clj#L117 > > I'll dig into this this weekend. > > On Mar 2, 6:30 pm, Stuart Campbell <[email protected]> wrote: > > Done!http://dev.clojure.org/jira/browse/CLJS-157 > > > > On 3 March 2012 01:15, David Nolen <[email protected]> wrote: > > > > > > > > > > > > > > > > > Please open a ticket in JIRA. Thanks! > > > > > On Fri, Mar 2, 2012 at 4:50 AM, Stuart Campbell <[email protected]> > wrote: > > > > >> Hello, > > > > >> I'm encountering a problem where the browser REPL sometimes omits the > > >> ClojureScript namespace in its generated JavaScript, e.g. (def x 42) > > >> compiles to ".x = 42" instead of "foo.x = 42". > > > > >> I've put together a minimal project, with steps to reproduce, on > GitHub: > > >>https://github.com/harto/cljs-eval-test > > > > >> It looks to me like compiling a set of ClojureScript files (using > > >> cljs.closure/build) causes some side-effect that prevents the > problem. See > > >> the GitHub README for details. > > > > >> I'm on Mac OS X 10.5 with Java 1.6.0_26. > > > > >> Regards, > > >> Stuart > > > > >> -- > > >> You received this message because you are subscribed to the Google > > >> Groups "Clojure" group. > > >> To post to this group, send email to [email protected] > > >> Note that posts from new members are moderated - please be patient > with > > >> your first post. > > >> To unsubscribe from this group, send email to > > >> [email protected] > > >> 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 post to this group, send email to [email protected] > > > Note that posts from new members are moderated - please be patient with > > > your first post. > > > To unsubscribe from this group, send email to > > > [email protected] > > > 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 post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > 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 post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
