On Sat, Mar 12, 2011 at 7:49 PM, Larry Travis <tra...@cs.wisc.edu> wrote:
> I'm having trouble getting the load-file command to work in a Clojure repl.
> On some files it works and on some it doesn't. Here is an example of its not
> working:
>
> I do:
>
> (load-file "/Users/larrytravis/AquaFiles/sdku-project-defns")
>
>
> And I get the error message:
>
> java.lang.Exception: Unable to resolve symbol: selection in this context
> (sdku-project-defns:867)
>
>
> The file "sdku-project-defns" definitely exists in the directory
> "/Users/larrytravis/AquaFiles" and is retrievable from there with other
> applications. Why does the Clojure repl append ":867" to the file's name and
> then tell me that the changed name is an unresolvable symbol?

I think it's telling you that "selection" is an unresolvable symbol
and that it appears on line 867 of your file.

The file may simply contain a bug. Most likely it's a lack of a
forward declaration. If you were developing at the REPL "selection"
may have been defined before you defined the stuff that uses it, but
if "selection" isn't earlier in the file than what's using it, you'll
get this error on load in a fresh session.

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