Cannot make midje work on my first project

39 views
Skip to first unread message

Roelof Wobben

unread,
Nov 1, 2014, 4:13:22 AM11/1/14
to mi...@googlegroups.com
Hello

First I make a new project with lein new app exercises.
Then I add this : {:user {:plugins [[lein-midje "3.1.3"]]}} to my profiles.cli and run lein new midje exercises in the root of the exercises directory.

Then I did lein midje and saw this error messsage :

Caused by: java.lang.RuntimeException: Unable to resolve symbol: midje in this context                                     
        at clojure.lang.Util.runtimeException(Util.java:219)                                                               
        at clojure.lang.Compiler.resolveIn(Compiler.java:6874)                                                             
        at clojure.lang.Compiler.resolve(Compiler.java:6818)                                                               
        at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6779)                                                         
        at clojure.lang.Compiler.analyze(Compiler.java:6343) 

Roelof

Korny Sietsma

unread,
Nov 2, 2014, 5:25:34 AM11/2/14
to mi...@googlegroups.com

"lein new midje exercises" generates a brand new project called "exercises" including some sample code and a sample test, if I recall correctly.

You don't want to run this within an existing project - it will make a mess, creating a project within a project.

Just run "lein new midje foo" on its own. Or run "lein new app foo" and then manually add midje dependencies to the project.clj file, as described in the docs.

--
You received this message because you are subscribed to the Google Groups "Midje" group.
To unsubscribe from this group and stop receiving emails from it, send an email to midje+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roelof Wobben

unread,
Nov 2, 2014, 9:08:33 AM11/2/14
to mi...@googlegroups.com
Thanks,

Things are working now.

Roelof


Op zondag 2 november 2014 11:25:34 UTC+1 schreef Korny:

Mark Nutter

unread,
Nov 2, 2014, 1:17:29 PM11/2/14
to mi...@googlegroups.com
Did you also add midje itself to your project? The lein-midje plugin is just a helper to let you run the tests more easily, but you have to add midje itself to project.clj.


Reply all
Reply to author
Forward
0 new messages