-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems using repl-listen and Chrome #262
Comments
Though I'm obviously biased, I would suggest looking at https://github.com/cemerick/austin for a somewhat easier path to a ClojureScript REPL using browser runtimes, as well as a 'classic' browser-connected REPL. I'll take a look at the example sometime later this week, but FWIW, the current plan is that cljsbuild's REPL utilities will not be making the trip to v2.0. |
i confirm what chas said. i also use pieggiback, but only with r1978 because it seems to me that austin raises few warning with this release. but i could be wrong.Inviato da Samsung Mobile Chas Emerick ha scritto: Though I'm obviously biased, I would suggest looking at https://github.com/cemerick/austin for a somewhat easier path to a ClojureScript REPL using browser runtimes, as well as a 'classic' browser-connected REPL. FWIW, the current plan is that cljsbuild's REPL utilities will not be making the trip to v2.0. —Reply to this email directly or view it on GitHub. |
I've seen this too; I'm always able to get chrome to connect my manually typing in the javascript repl.connect code in the console. I think it has to do with the order in which the scripts are run? Even a couple of reloads won't work, but manually hitting that JS does the trick. |
The idea from @sritchie sounds reasonable however I'm not sure how to test it. My guess is
but that doesn't make it tick. I've messed around a bit with https://github.com/cemerick/austin and while the REPL seems better out of the box I haven't managed to get it working with a simple static HTML page yet. @cemerick have given me some pointers so I'll probably figure that one out. |
I've now managed to find the culprit (again thanks to @cemerick): An extension somehow breaks the REPL connection. The behavior is the same as in cemerick/austin#17. The offending extension is this toy: https://chrome.google.com/webstore/detail/dictionary-of-numbers/ahhgdmkmcgahbkcbmlkpmmamemlkajaf. I haven't been able to figure out WHY it breaks. The extension source code isn't available at the extensions web site but isn't obfuscated in any way so one can read it from the downloaded extension. |
I am also experiencing this issue with chrome on mac. I've been banging my head against the wall, trying to get repl-listen to work and decided to try it with firefox and it worked as expected. I'm unable to use austin because I need cljs > 0.0.-2156. After some testing, it seems my offending extension is the Zotero connector. I also have not gone any deeper to see why this is an issue. |
I get this same problem, and it doesnt matter if I use Firefox or Chrome. In a js console I get an error: ReferenceError: clojure is not defined |
The CLJS REPL was completely rearchitected earlier this year, so this should not be a problem anymore. |
Using a minimal project I can't get Chrome to connect correctly to the repl. Evaluating something simple like (+ 1 1) stalls the process. Visiting the same URL later using Firefox completes the evaluation. The behavior has been repeated by at least one person in the #clojure IRC channel. Produced this using Chrome 31.0.1650.39 beta. Tested source is available at https://gist.github.com/smiler/7316919.
The text was updated successfully, but these errors were encountered: