brentonashworth/one — Issue #116: unqualified vars not accessible when using Emacs setup
Author: krukow
Created: 2012-02-16 12:28:22+00:00
State: open

I'm following along the tutorial at

https://github.com/brentonashworth/one/wiki/Development

and using the Emacs setup guide:

https://github.com/brentonashworth/one/wiki/Emacs

But I'm experiencing a problem that has also been discussed in the Google group:
https://groups.google.com/group/clojure/browse_frm/thread/43ad3661aa3292d0/73a2f29776d70694

Reproduce:

- follow the steps: https://github.com/brentonashworth/one/wiki/Emacs
from Run M-x shell to get a new *shell* buffer
to: Connect a browser session to the ClojureScript REPL..

Now I do have to go to: http://localhost:8080/development and not http://localhost:8080
but the browser repl is working (I can do (js/alert "asdf")

Following the next steps in the Development wiki page:

(in-ns 'one.sample.model)

and deref'ing the state var, I get an error:

ClojureScript:one.sample.model> state
"Error evaluating:" state :as ".state;\n"
#
SyntaxError: Unexpected token .
at http://localhost:8080/javascripts/out/clojure/browser/repl.js:21:158
at evaluate_javascript (http://localhost:8080/javascripts/out/clojure/browser/repl.js:33:4)
...

where as the fully qualified var works:

ClojureScript:one.sample.model> one.sample.model/state
#