repl in browser as an Evaluation Environment (example from WIKI) not working (for me)

156 views
Skip to first unread message

Frank Behrens

unread,
Feb 25, 2014, 5:15:41 PM2/25/14
to clojur...@googlegroups.com
Hello,

I didn't mange to get to repl connected to Chrome working as described in the WIKI
https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments


Here is what i did
https://gist.github.com/fbehrens/bf42d4cf8be63ef827bc

When I open chrome in http://localhost:9000/ i got a
`Uncaught ReferenceError: clojure is not defined
shown in the console.

What am i missing ?
Help would be apreciated.

Frank

JUAN ANTONIO Ruz

unread,
Feb 25, 2014, 7:59:28 PM2/25/14
to clojur...@googlegroups.com
Hi Frank
I think that the easy way to use the brepl is https://github.com/cemerick/austin

Give it a try to the sample proyect

Another way to start up with brepl could be the David Nolen Light Table guide http://swannodette.github.io/2014/01/15/clojurescript-for-light-table-users/

Good luck
Juan

Frank Behrens

unread,
Feb 27, 2014, 11:43:04 AM2/27/14
to clojur...@googlegroups.com
Thanks Juan,

as I am new to clojure & clojurescript.

My priority in that is to understand how it works, and become familiar with, than to get something working and don't really understand why.

I think the examples the clojurescript repo should be perfect for that.
I just tried many of them, sadly most just didn't work (at least for me).

I did't want to file a bug, but I would gladly contribute to get working examples in the clojurescript repo.

Maybe someone wants to follow this up with me ?

With kind regards,
Frank

JUAN ANTONIO Ruz

unread,
Feb 28, 2014, 6:30:51 PM2/28/14
to clojur...@googlegroups.com
Hi Frank again!
As you can read in one David Nolen stackoverflow response http://stackoverflow.com/questions/10990077/how-to-debug-clojurescript "I cannot emphasize this enough - do not use the ClojureScript compiler directly. Use lein-cljsbuild. You can write different builds (testing, development, release). You can auto-watch files so they recompile quickly as you change them. You can easily use browser repl to evaluate code directly in the browser. You can manage dependencies."

So i recommend you to start on lein-cljsbuild page https://github.com/emezeske/lein-cljsbuild for setting up your brepl environment. And later don't forget to take a look at cemerick/austin

Good luck
Juan

Frank Behrens

unread,
Mar 2, 2014, 9:28:54 AM3/2/14
to clojur...@googlegroups.com
Dear Juan,

thanks for giving directions.
This is very appreciated, I will look into it,

cheers
Frank 

Frank Behrens:
  :mobile: +49 178 8862743



--
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/wC9ZwVTtE3c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply all
Reply to author
Forward
0 new messages