Re: Beginners question - emacs compiling tests

2013-05-31 Thread Adam Getchell
On Tuesday, March 19, 2013 4:22:59 PM UTC-7, John SJ Anderson wrote: I had this same issue when working through the tutorial. The text makes it sound like you should replace the entire contents of the test file, but that's not the case -- you just need to replace the (deftest ...) form.

Re: Beginners question - emacs compiling tests

2013-05-31 Thread gaz jones
The 'parse-args' function needs to be inside of the 'core.clj' file, not the 'core_test.clj' file - is that the case? (The reason it is failing is the first usage of 'parse-args' is before it has been defined). On Fri, May 31, 2013 at 1:31 AM, Adam Getchell adam.getch...@gmail.comwrote: On

Re: Beginners question - emacs compiling tests

2013-03-20 Thread Stefan Kamphausen
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

Re: Beginners question - emacs compiling tests

2013-03-20 Thread Marko Topolnik
This problem was cross-posted over here from StackOverflowhttp://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

Re: Beginners question - emacs compiling tests

2013-03-20 Thread Stefan Kamphausen
Hi, On Wednesday, March 20, 2013 9:44:19 AM UTC+1, Marko Topolnik wrote: This problem was cross-posted over here from StackOverflowhttp://stackoverflow.com/questions/15508152/beginners-emacs-clojure-compiling-error, where it has already been marked as solved. oh, sorry, didn't know

Re: Beginners question - emacs compiling tests

2013-03-20 Thread Marko Topolnik
On Wednesday, March 20, 2013 10:39:34 AM UTC+1, Stefan Kamphausen wrote: To it seems obvious, that I want my complete project loaded and waiting for my new changes, when I launch a REPL. Maybe that's a leftover from my Common Lisp days? Why would I want to hit C-c C-k every time I open

Re: Beginners question - emacs compiling tests

2013-03-20 Thread Stefan Kamphausen
On Wednesday, March 20, 2013 10:44:15 AM UTC+1, Marko Topolnik wrote: Because you usually don't want to wait the eternity it takes to compile and load absolutely everything. Even loading just the main namespace can be painfully slow, even if your project is just a few lines, due to the

Re: Beginners question - emacs compiling tests

2013-03-20 Thread tyaakow
As Marko has said, this was answered on stackoverflow. But I appreciate your answers, and the discussion is a joy to read. Cheers!! -- -- 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

Beginners question - emacs compiling tests

2013-03-19 Thread tyaakow
I'm going through clojure emacs tutorial from clojure-doc.org, and when compiling the test as suggested, i get following output in emacs nrepl: clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: deftest in this context,

Re: Beginners question - emacs compiling tests

2013-03-19 Thread John D. Hume
It looks like you're missing (ns ...) forms at the top of each file. That tutorial doesn't show them, but lein would have generated them for you when it generated the project. The key element is that your test file should have a (:use clojure.test) in the (ns) form, which is what allows you to use

Re: Beginners question - emacs compiling tests

2013-03-19 Thread John SJ Anderson
On Tue, Mar 19, 2013 at 3:02 PM, John D. Hume duelin.mark...@gmail.com wrote: It looks like you're missing (ns ...) forms at the top of each file. That tutorial doesn't show them, but lein would have generated them for you when it generated the project. The key element is that your test file