clojure-android / lein-droid

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

robert.hooke cause error with "with-profile" #39

Closed ayamada closed 11 years ago

ayamada commented 11 years ago

Hi.

I'm develop https://github.com/ayamada/clan .

I did

lein with-profile prof droid release build

, but I got error

Performing task 'droid' with profile(s): 'prof'
Error encountered performing task 'droid' with profile(s): 'prof'
java.lang.IllegalStateException: Attempting to call unbound fn: #'robert.hooke/end-scope
        at clojure.lang.Var$Unbound.throwArity(Var.java:43)
        at clojure.lang.AFn.invoke(AFn.java:35)
        at leiningen.with_profile$with_profiles_STAR_.invoke(with_profile.clj:10)
        at leiningen.with_profile$with_profile$fn__5587.invoke(with_profile.clj:63)
        at leiningen.with_profile$with_profile.doInvoke(with_profile.clj:61)
        at clojure.lang.RestFn.invoke(RestFn.java:494)
        at clojure.lang.Var.invoke(Var.java:431)
        at clojure.lang.AFn.applyToHelper(AFn.java:178)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.core$apply.invoke(core.clj:619)
        at leiningen.core.main$resolve_task$fn__1833.doInvoke(main.clj:186)
        at clojure.lang.RestFn.applyTo(RestFn.java:139)
        at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply.invoke(core.clj:619)
        at leiningen.core.main$apply_task.invoke(main.clj:226)
        at leiningen.core.main$_main$fn__1900.invoke(main.clj:291)
        at leiningen.core.main$_main.doInvoke(main.clj:280)
        at clojure.lang.RestFn.invoke(RestFn.java:482)
        at clojure.lang.Var.invoke(Var.java:431)
        at clojure.lang.AFn.applyToHelper(AFn.java:178)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.core$apply.invoke(core.clj:617)
        at clojure.main$main_opt.invoke(main.clj:335)
        at clojure.main$main.doInvoke(main.clj:440)
        at clojure.lang.RestFn.invoke(RestFn.java:551)
        at clojure.lang.Var.invoke(Var.java:440)
        at clojure.lang.AFn.applyToHelper(AFn.java:193)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.main.main(main.java:37)

But below code was work.

lein droid release build

I guess, that was caused by robert.hooke's incompatible version on lein and lein-droid.

I use lein-2.1.0 (Tutorial say to use 2.0, but lein-2.0.0 cannot work by robert.hooke's another error).

I use lein-droid 0.1.0 from clojars. Old version of lein-droid(without robert.hooke) can work, but I want to use new feature ":native-libraries-paths".

alexander-yakushev commented 11 years ago

end-scope is a function that appeared in robert.hooke later than the version lein-droid used so far. I don't know why this happens, but anyway I've updated dependencies for lein-droid, please try version 0.2.0-SNAPSHOT and see if it works, thank you.

ayamada commented 11 years ago

I tried 0.2.0-SNAPSHOT, and it work well! Thank you very much!