2010/12/29 Nicholas Wieland <nicholas.wiel...@gmail.com> > Hi *, > I'm a bit ashamed but considering that I'm a newbie in Clojure and a total > newbie in Java there's apparently no end to this metanewbie status I'm > currently in :-) > I'm trying to require a file and use it from the REPL, but every time I try > to call a function from this file Clojure is not able to resolve the symbol. > What I did is creating a project using lein, and lein created a directory > structure that includes src/project_name, where I believe I'm supposed to > put my files. > Now, other than the canonical core.clj I've created another file foo.clj. > There's still no interaction between the 2 files, but just as a matter of > testing what I'm writing I would like to be able to call the functions of > foo.clj from the REPL. The namespace is declared to be project_name.foo. > I've tried to use both require and use inside lein repl, no matter what I > do it doesn't find the file (NO_SOURCE_FILE). If I understand the > functioning right I'm supposed to only use the namespace, so (:require > project_name.foo) should actually work and include the full namespace (that > I translate mentally with "file" :) inside the current one, that according > to the repl is project_name.core. > Someone has a suggestion on where to look or how to fix ? > > Hello,
I've added an entry to this in the FAQ, under the "Namespaces" section : http://dev.clojure.org/display/doc/FAQ HTH, -- Laurent -- 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