Search code examples
clojureleiningenread-eval-print-loopclojurescript

ClojureScript bRepl does not respond at all


I've been tinkering with clojure and clojurescript for some time and I always found the browser repl to be extremely unresponsive. It usually hangs on without giving a result, or throws a broken pipe exception. Now I'm in a situation where it always refuses to work.

Let's say I download the modern-cljs tutorial part 2 and I do all the steps to start the page, load the compiled javascript and start the bRepl. When I try to evaluate something as simple as (+ 3 4) well, it just doesn't work.

I'm on OSX 10.8.4 and my leiningen version is 2.3.2 on Java 1.6.0_51 Java HotSpot(TM) 64-Bit Server VM. Any help is extremely appreciated.


Solution

  • I've had a few problems with this topic too. And here are the tricks that help me:

    1. Clean leain deps: rm -rf ~/.m2/*
    2. download lein deps: lein deps in your project root
    3. I saw this message: "broken pipe" when there was too much time from the last brepl interaction. So, refresh the browser and that's all
    4. sometimes my brepl hung on the first time i was trying to evaluate the code, again try to refresh the browser
    5. don't forget to run: lein cljsbuild once before start the brepl

    Good luck

    PS: Anyway if you want to have a comfortable brepl experience you have to take a look to https://github.com/cemerick/austin . I have tested this brepl and works fine https://github.com/juanantonioruz/client