OK, this was very helpful advice.  Using these warnings I was able to
identify several problems:
Clojurescript didn't like my use of defstruct
Clojurescript didn't like my throwing of a RuntimeException
Clojurescript doesn't understand the format function  (is there a
substitute in Clojurescript-land?)

I eliminated these issues and now my code is compiling with no warnings.
The code still works in Clojure, so I know I have introduced no new bugs.

Unfortunately, it still doesn't work in Clojurescript.  I'm still getting
the same cryptic error message about not being able to call the method
"call" of undefined.

Any other suggestions?

Thanks,

Mark

On Thu, Apr 19, 2012 at 11:32 AM, David Nolen <dnolen.li...@gmail.com>wrote:

> Then you need construct your REPL with:
>
> (repl/repl env :warn-on-undeclared true)
>
> David
>
> On Thu, Apr 19, 2012 at 2:27 PM, Mark Engelberg 
> <mark.engelb...@gmail.com>wrote:
>
>> lein-cljsbuild's trampoline tasks for starting REPLs are not working for
>> me (I reported this in another thread).  Seems to be a problem with lein's
>> batch file for Windows not properly handling spaces in directories that
>> relate to plugins.
>>
>> So I do lein repl (I've configured the project file with additional
>> classpaths that point into the clojurescript libs and src directories).
>>
>> Then, I do:
>> (require '[cljs.repl :as repl])
>> (require '[cljs.repl.rhino :as rhino]) ;; require the rhino
>> implementation of IJavaScriptEnv
>> (def env (rhino/repl-env)) ;; create a new environment
>> (repl/repl env) ;; start the REPL
>>
>> The clojurescript is freshly cloned from git as of last night, using:
>>
>> git clone git://github.com/clojure/clojurescript.git
>>
>>
>>
>> On Thu, Apr 19, 2012 at 11:13 AM, David Nolen <dnolen.li...@gmail.com>wrote:
>>
>>> How are you starting the REPL? What version of ClojureScript? Are you
>>> using lein-cljsbuild?
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to