On Sun, Dec 29, 2013 at 1:30 PM, larry google groups
<lawrencecloj...@gmail.com> wrote:
> Thanks for that. But the app has no problem reading the schema.edn file when
> I start the app with:
>
> java -jar admin-1-standalone.jar
>
> So why would it have trouble reading the file when I'm in the repl?

Can you post the project (or just the EDN file)? It's hard to get specific
without seeing more.

My general REPL-driven debugging strategy is to run the code in question in
smaller and smaller increments until I find the minimum piece of code that
fails. That will help you pinpoint where the issue is.

So, for instance, you know that (initiate-forms) fails, and you noted that it
contains (read-string (slurp (clojure.java.io/resource "config/schema.edn"))).
Given that, I would try each of the following in sequence:

1. (clojure.java.io/resource "config/schema.edn")
2. (slurp (clojure.java.io/resource "config/schema.edn"))
3. (read-string (slurp (clojure.java.io/resource "config/schema.edn")))

Of course, also include anything else in `initiate-forms`. Going through that
may lead you to the problem, but if not please reply with the result of each of
those expressions, including the details of any exception(s) thrown. Based on
the error in your REPL session

- John

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to