Ok, please pull the latest and try again.
git clone git://github.com/duelinmarkers/clj-record.git

The problem was due to something I've seen a couple other messages
about: When running a file as a script, it starts out in the
clojure.core namespace. I was doing (def db {...}) before any (ns ...)
so the db var lived in clojure.core, which made it conveniently (but
sloppily) visible everywhere. Loading from the REPL, however, it was
landing in the user namespace. I've now put it in a config namespace
and required config from the two places that need it.

Thanks for looking.
-hume.

On Sun, Dec 28, 2008 at 11:27 PM, John D. Hume <duelin.mark...@gmail.com> wrote:
> The db configuration isn't reasonable at the moment. You can run
> clj_record/test/main.clj as a script but not load it from the REPL.
> Let me see if I can get it to work both ways and push an update.
>
> On Sun, Dec 28, 2008 at 6:28 PM, Brian Doyle <brianpdo...@gmail.com> wrote:
>> Having used Rails myself I wanted to check this out and play with it.   I'm
>> having some
>> trouble just loading the clj_record/core.clj file though:
>>
>> 1:1 user=> (load-file "clj_record/core.clj")
>> java.lang.Exception: Unable to resolve symbol: db in this context
>> (core.clj:19)
>>
>> I'm sure it's something I'm doing wrong but I do have derby.jar on my
>> classpath.  Thanks.

--~--~---------~--~----~------------~-------~--~----~
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
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