Afternoon All

I'm having a small issue using load-namespace from a bcrepl session, to load 
namespaces, and use functions, from within my project. I had a play with the 
cemerick's sample project, and successfully managed to load (and use) the 
cljscript namespace within that project:

https://github.com/cemerick/austin/tree/master/browser-connected-repl-sample

When attempting to setup a bcrepl on an existing cljs project I'm working on, I 
managed to interact with the browser from the repl (i.e. sending alerts, adding 
nodes to the dom etc), but I didn't manage to load and use any of the 
namespaces defined within the project. When attempting to run a function within 
a namespace I get the following error:

"Error evaluating:" (mftest) :as ".mftest.call(null);\n"
#<SyntaxError: Unexpected token .>
SyntaxError: Unexpected token .
    at http://localhost:3030/main.js:19699:264
    at clojure.browser.repl.evaluate_javascript 
(http://localhost:3030/main.js:19709:4)
    at Object.callback (http://localhost:3030/main.js:19765:167)
    at goog.messaging.AbstractChannel.deliver 
(http://localhost:3030/main.js:18107:34)
    at goog.net.xpc.CrossPageChannel.xpcDeliver 
(http://localhost:3030/main.js:18990:307)
    at Function.goog.net.xpc.NativeMessagingTransport.messageReceived_ 
(http://localhost:3030/main.js:18617:14)
    at goog.events.Listener.handleEvent (http://localhost:3030/main.js:14273:51)
    at Object.goog.events.fireListener (http://localhost:3030/main.js:14508:12)
    at goog.events.handleBrowserEvent_ (http://localhost:3030/main.js:14605:26)
    at http://localhost:3030/main.js:14332:14

Where does the repl look when attempting to resolve the namespaces? I updated 
my project to output my clojurescript file to target/classes/public/ (as 
cemerick's project did). Still the same issue though. 

The only other obvious difference is that I've had to exclude 
'com.google.protobuf/protobuf-java' from my clojurescript dependency. 

Any help will be much appreciated.

Many thanks

Matt

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to