Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread Jonathan Fischer Friberg
It works! Thanks for all the help. On Tue, Oct 18, 2011 at 5:52 PM, David Nolen wrote: > I see you're not setting the encoding. Try adding the following to the top > of > > > > David > > > On Tue, Oct 18, 2011 at 11:43 AM, Jonathan Fischer Friberg < > odysso...@gmail.com> wrote: > >> I did a

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread David Nolen
I see you're not setting the encoding. Try adding the following to the top of David On Tue, Oct 18, 2011 at 11:43 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I did a minimal example > https://gist.github.com/1295749 > > Result is in the attachment. > > > On Tue, Oct 18, 2011

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread David Nolen
Try removing the following: file.js out and recompiling. I also recommend compiling one of the ClojureScript samples that you haven't checked out yet to see if the issue is reproducible. David On Tue, Oct 18, 2011 at 11:17 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > It works n

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread Jonathan Fischer Friberg
It works now, and the result is as expected. In the browser I still get the extra characters however. On Tue, Oct 18, 2011 at 5:04 PM, David Nolen wrote: > Have you rerun the bootstrap script since the Rhino upgrade? > > > On Tue, Oct 18, 2011 at 10:33 AM, Jonathan Fischer Friberg < > odysso...

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread David Nolen
Have you rerun the bootstrap script since the Rhino upgrade? On Tue, Oct 18, 2011 at 10:33 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I can't run that repl, I get > > Exception in thread "main" java.lang.RuntimeException: > java.lang.ClassNotFoundException: org.mozilla.javascrip

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread Jonathan Fischer Friberg
I can't run that repl, I get Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: org.mozilla.javascript.Context at clojure.lang.Util.runtimeException(Util.java:165) at clojure.lang.Compiler.eval(Compiler.java:6435) at clojure.lang.Compiler.eval(Comp

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread David Nolen
Does the same problem occur when trying this at the REPL (say via script/repljs) ? David On Tue, Oct 18, 2011 at 7:22 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I'm on the master branch. > > I compiled the file using 'cljsc file > file.js', and run it in the > browser. > > > On

Re: Get the name of keyword/symbol in clojurescript

2011-10-18 Thread Jonathan Fischer Friberg
I'm on the master branch. I compiled the file using 'cljsc file > file.js', and run it in the browser. On Tue, Oct 18, 2011 at 1:16 AM, David Nolen wrote: > Are you using ClojureScript HEAD? If you are and you are still seeing this > under what conditions (advanced mode, browser REPL, etc.) ? >

Re: Get the name of keyword/symbol in clojurescript

2011-10-17 Thread David Nolen
Are you using ClojureScript HEAD? If you are and you are still seeing this under what conditions (advanced mode, browser REPL, etc.) ? David On Mon, Oct 17, 2011 at 6:41 PM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > Hi, > > As I understand it, clojurescript uses some unicode chara

Get the name of keyword/symbol in clojurescript

2011-10-17 Thread Jonathan Fischer Friberg
Hi, As I understand it, clojurescript uses some unicode characters to identify keywords/symbols. I guess that's why (str 'a) gives me ï·‘'a I thought that this was intentional, and that (name 'a) would give me "a", but I got the same result as with (str). So how do I extract the name from a symbo