clojure-android / lein-droid

A Leiningen plugin for building Clojure/Android projects
Eclipse Public License 1.0
645 stars 56 forks source link

java.lang.IllegalArgumentException: No matching clause: droidtest #22

Closed Profpatsch closed 11 years ago

Profpatsch commented 11 years ago

With the official build at clojars I got error https://github.com/alexander-yakushev/lein-droid/pull/20 and after cloning here, running lein jar and copying the jar into my leiningen folder the following error comes up:

% lein droid droidtest de.profpatsch.droidtest
java.lang.IllegalArgumentException: No matching clause: droidtest
    at leiningen.droid$execute_subtask.invoke(droid.clj:81)
    at leiningen.droid$droid.doInvoke(droid.clj:74)
    at clojure.lang.RestFn.invoke(RestFn.java:439)
    at clojure.lang.Var.invoke(Var.java:423)
…
alexander-yakushev commented 11 years ago

Hello,

There is no such subtask in lein-droid as droidtest. Could you please describe what do you want to do? There is a tutorial on lein-droid usage here.

Profpatsch commented 11 years ago

Okay … I feel stupid now. Let’s just say I was too tired to notice I forgot new.

Yet, it would be cool if lein-droid would say something the likes of: “No such submodule: foo” instead of throwing a horrible Exception.

Anyway, let’s just forget this. :)

alexander-yakushev commented 11 years ago

You've got a point. I've pushed a small fix that makes it clearer when you make such a mistake.

Thank you.