Sorry it wasn't clear to me what you gave were actual steps. I need a complete minimal case that I can actually try and run. If you cannot come up with this there really isn't much I can do.
As a side note the only time I've seen something like this is if you don't defonce your REPL connection and you then try to require the namespace that makes the REPL connection. Note all this is covered in the new Quick Start. David On Sat, May 9, 2015 at 1:41 PM, John Chijioke Umeasiegbu < [email protected]> wrote: > I thought I gave the steps I tried without piggieback? > > > > Sent from my BlackBerry 10 smartphone. > *From: *David Nolen > *Sent: *Saturday, May 9, 2015 3:53 PM > *To: *[email protected] > *Reply To: *[email protected] > *Subject: *Re: [ClojureScript] init-requires throws Range Error maximum > call stack exceeded > > I don't use piggieback and that's really outside the scope of anything I'd > look into. piggieback users will have to chime in. > > David > > On Sat, May 9, 2015 at 10:42 AM, John Chijioke <[email protected]> > wrote: > >> I've tried to think of some minimal reproducible case but can't come up >> with any. The only additional info I can add at this point is my chrome >> version. Also important to note is that this does not happen in firefox but >> it still makes extraordinary many calls to the repl server. I think chrome >> is failing for this many calls to the server but firefox manages to see it >> through. >> >> To give you an idea of how much calls it makes I pasted the log from >> chrome in github. I don't know whether it's expected behavior and it's just >> my chrome version giving the issue. >> >> Chrome Version: 40.0.2214.115 (64-bit) >> ClojureScript Version: 0.0-3230 >> >> Github gist for logs: >> https://gist.github.com/johnbendi/2f7071b4392e97ca8ba3 >> >> As you can see the call are very many and that's just for chrome because >> it fails halfway with the Range Error. >> >> What I did in my project without piggieback from the command line: >> >> 1. cd to my project root >> 2. lein repl >> 3. (cljs.repl/repl (browser/repl-env {})) >> 4. connect from browser to repl >> >> Then the behavior is observed in my case. >> >> As a workaround I just removed the require call. So that I can continue >> with what I was doing before trying to upgrade piggieback and then noticing >> these issues. >> >> HTH. Let me know if there is any other info you need. >> >> Regards, >> John. >> >> >> On Friday, May 8, 2015 at 12:17:36 PM UTC+1, David Nolen wrote: >> > I will a need a way to reproduce the issue without piggieback. Do you >> have a complete minimal case that I can look at? >> > >> > >> > Thanks, >> > David >> > >> > >> > On Fri, May 8, 2015 at 2:32 AM, John Chijioke <[email protected]> >> wrote: >> > On Wednesday, May 6, 2015 at 3:56:41 PM UTC+1, David Nolen wrote: >> > >> > > Haven't seen this. Will need more a lot information about what you >> attempted. >> > >> > > >> > >> > > >> > >> > > Thanks, >> > >> > > David >> > >> > > >> > >> > > >> > >> > > On Wed, May 6, 2015 at 10:53 AM, John Chijioke <[email protected]> >> wrote: >> > >> > > I get the above error when initializing cljs repl. >> > >> > > >> > >> > > >> > >> > > >> > >> > > Has anyone got the same issue? >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > -- >> > >> > > >> > >> > > 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. >> > >> > >> > >> > Hello, >> > >> > >> > >> > I tried to be sure this was not a fault of piggieback therefore I spent >> days tracing this issue. As it turns out it is not and has more to do with >> the init require calls that happens in the browser. >> > >> > >> > >> > I tried the cljs repl with and without piggieback and it returned the >> same error in both cases. >> > >> > >> > >> > The actual code from piggieback is >> > >> > >> > >> > ```clojure >> > >> > (ns cljs.user >> > >> > (:require [cljs.repl :refer-macros (source doc find-doc >> > >> > apropos dir pst)])) >> > >> > ``` >> > >> > >> > >> > I also trief adding the code from -repl-options of browser env to the >> above it only resulted in several more calls from browser to the server and >> still ended with the Range Errors. >> > >> > >> > >> > >> > >> > Regardless of whether it happens before the browser has connected or >> not the above code throws the folowing error: >> > >> > >> > >> > ``` >> > >> > RangeError: Maximum call stack size exceeded >> > >> > RangeError: Maximum call stack size exceeded >> > >> > at cljs$core$_EQ_ ( >> http://localhost:30000/generated-js/cljs/core.js:4812:42) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:207:19) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > at Object.clojure.browser.repl.bootstrap.goog.require [as >> require__] ( >> http://localhost:30000/generated-js/clojure/browser/repl.js:227:16) >> > >> > ``` >> > >> > >> > >> > As a side effect this creates a bug in piggieback where the print >> function does not get called in order to set the *cljs-compiler-env* var on >> first call. >> > >> > >> > >> > Regards, >> > >> > John >> > >> > >> > >> > N/B: I tried to format the codes but I don't know if it will work. >> David can you tell me how you do it? >> > >> > >> > >> > >> > >> > -- >> > >> > 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. >> > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to a topic in the > Google Groups "ClojureScript" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojurescript/ewRpTfSOYq8/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
