Skip to content
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

Initial namespace not setup properly #65

Closed
andykitchen opened this issue Jul 7, 2014 · 1 comment
Closed

Initial namespace not setup properly #65

andykitchen opened this issue Jul 7, 2014 · 1 comment

Comments

@andykitchen
Copy link

For some reason, when using exec-env through cljs.repl/repl
the default namespace isn't initially set-up correctly causing syntax
errors in the generated code.

[com.cemerick/austin "0.1.4"]
[org.clojure/clojurescript "0.0-2156"]

nREPL server started on port 61111 on host 127.0.0.1 - nrepl://127.0.0.1:61111
REPL-y 0.3.1
Clojure 1.5.1
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> (cljs.repl/repl (cemerick.austin/exec-env))
Browser-REPL ready @ http://localhost:61114/2222/repl/start
To quit, type: :cljs/quit
ClojureScript:cljs.user> (def n 1)
"Error evaluating:" (def n 1) :as ".n = 1"
#<SyntaxError: Parse error>
No stacktrace available.
nil
nREPL server started on port 61126 on host 127.0.0.1 - nrepl://127.0.0.1:61126
REPL-y 0.3.1
Clojure 1.5.1
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> (def env (cljs.repl.rhino/repl-env))
#'user/env
user=> (cljs.repl/repl env)
To quit, type: :cljs/quit
ClojureScript:cljs.user> (def n 1)
1
@cemerick
Copy link
Owner

Austin is not compatible with ClojureScript 2156 and 2173; just about any other version will work. See #55.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants