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 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.
