Do you have some advice on how to narrow it down? Some kind of debug flags? 
It's a 30+ files project [1], not sure where to start producing this minimal 
example :(

FYI, in case it helps: now with 0.0-2760 the same source code produces

  java.lang.StackOverflowError: 
                        ...                    
         clojure.core/apply      core.clj:  626
     clojure.core/update-in      core.clj: 5698
                        ...                    
         clojure.core/swap!      core.clj: 2235
                        ...                    
   cljs.analyzer/ns-dependents  analyzer.clj:  448
   cljs.analyzer/ns-dependents  analyzer.clj:  446
   cljs.analyzer/ns-dependents  analyzer.clj:  446
   ...

[1] https://github.com/startupflock/frontend

Stephan


On Sunday, February 1, 2015 at 3:29:29 PM UTC+1, David Nolen wrote:
> Need a minimal example to reproduce.
> 
> On Sunday, February 1, 2015, stephanos <[email protected]> wrote:
> I just upgraded from 0.0-2665 to 0.0-2740. Now I see this when I run the code:
> 
> 
> 
>   TypeError: 'undefined' is not a function (evaluating 
> 'goog.nodeGlobalRequire')
> 
>   at /Users/.../target/out/cljs/core.js:183
> 
> 
> 
> I tried to go back release by release to find the first occurrence, it was at 
> 0.0-2723.
> 
> 
> 
> It seems that it wants to use a Node.js function to load a module? The code is
> 
> 
> 
>   cljs.core.load_file = (function load_file(file){
> 
>   if(cljs.core.truth_(COMPILED)){
> 
>   return null;
> 
>   } else {
> 
>   return   
> goog.nodeGlobalRequire([cljs.core.str("/Users/stephan/.boot/tmp/.../qu0/-7q8ihd/out"),cljs.core.str("/"),cljs.core.str(file)].join(''));
> 
>   }
> 
>   });
> 
> 
> 
> I'm quite sure I did not specify node as the target for this output. Is there 
> any way to check if CLJS thinks I'm targeting node (for optimization :none)?
> 
> 
> 
> PS: Interestingly, between from 0.0-2657 to 0.0-2719 I see this exception
> 
> 
> 
>   java.lang.ClassCastException: java.lang.String cannot be cast to 
> clojure.lang.IPersistentCollection
> 
>                    clojure.core/conj                          core.clj:   83
> 
>                clojure.core/merge/fn                          core.clj: 2759
> 
>                 clojure.core/reduce1                          core.clj:  903
> 
>                 clojure.core/reduce1                          core.clj:  894
> 
>                   clojure.core/merge                          core.clj: 2759
> 
>                                  ...
> 
>        cljs.closure/write-javascript                       closure.clj:  812
> 
>          cljs.closure/source-on-disk                       closure.clj:  828
> 
>   cljs.closure/output-unoptimized/fn                       closure.clj:  861
> 
>                  clojure.core/map/fn                          core.clj: 2559
> 
> 
> 
> 
> 
> Stephan
> 
> 
> 
> --
> 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> 
> ---
> 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> To post to this group, send email to [email protected].
> 
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to