This problem was cross-posted over here from 
StackOverflow<http://stackoverflow.com/questions/15508152/beginners-emacs-clojure-compiling-error>,
 
where it has already been marked as solved.

BTW where do you encounter your problem? Inside emacs, with nrepl.el? 
Because nrepl.el doesn't automatically compile anything; if you start the 
repl with *lein repl*, it will get compiled by the built-in repl client, 
and the effects will be observed within emacs. This is more of a 
side-effect than by-design.

If you, however, start with *lein repl :headless*, nothing happens (this 
will improve with Leiningen 2.1).

For any of this to work you need a *:main ...* or *:repl-options {:init ns 
...}* declaration in project.clj.

Finally, only the indicated main namespace (and its dependencies) will be 
loaded; the test namespace will once again stay unloaded because the main 
code doesn't depend on the test code.

-marko


On Wednesday, March 20, 2013 9:28:52 AM UTC+1, Stefan Kamphausen wrote:
>
> If you have a valid ns-form and still encounter that error, it may help to 
> compile the file once using C-c C-k.  I still need to do that (sometimes?) 
> when I open a file in Emacs although I'd thought, that the complete project 
> should have been loaded at REPL start. After that compilation of single 
> tests (e.g. using C-M-x) should be working.
>
> Best,
> Stefan
>

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