clojure-android / lein-droid

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

Compilation error on build #59

Closed krisc closed 10 years ago

krisc commented 10 years ago

I am getting an error when I build my app. Here is the output after running DEBUG=1 lein droid compile:

Leiningen's classpath: :/home/kris/.lein/self-installs/leiningen-2.3.1-standalone.jar
Applying task droid to (compile)
Applying task javac to nil
Running javac with [@/tmp/.leiningen-cmdline2657784603916681583.tmp]
Compiling 2 source files to /home/kris/src/events/target/classes
Applying task compile to nil
All namespaces already AOT compiled.
WARNING: :warn-on-reflection is deprecated; use :global-vars.
Running javac with [@/tmp/.leiningen-cmdline80063343821039418.tmp]
Compiling Clojure files...
Project classpath: (/home/kris/adt-bundle-linux-x86_64-20130522/sdk//tools/support/annotations.jar /home/kris/adt-bundle-linux-x86_64-20130522/sdk/platforms/android-15/android.jar /home/kris/src/events/test /home/kris/src/events/src/clojure /home/kris/src/events/src /home/kris/src/events/dev-resources /home/kris/src/events/resources /home/kris/src/events/target/classes /home/kris/.m2/repository/neko/neko/3.0.0-beta5/neko-3.0.0-beta5.jar /home/kris/.m2/repository/org/clojure-android/clojure/1.5.1-SNAPSHOT/clojure-1.5.1-SNAPSHOT.jar /home/kris/.m2/repository/android/tools.nrepl/0.2.0-bigstack/tools.nrepl-0.2.0-bigstack.jar /home/kris/.m2/repository/org/clojure-android/clojure-complete/0.3.0-SNAPSHOT/clojure-complete-0.3.0-SNAPSHOT.jar)
Build type: debug, dynamic compilation: enabled, remote REPL: enabled.
Applying task javac to nil
Running javac with [@/tmp/.leiningen-cmdline5884353484937350684.tmp]
WARNING: :warn-on-reflection is deprecated; use :global-vars.
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: o/*nrepl-port* in this context, compiling:(/tmp/form-init4250532848081098912.clj:1:171)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6567)
    at clojure.lang.Compiler.analyze(Compiler.java:6361)
    at clojure.lang.Compiler.analyze(Compiler.java:6322)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3624)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6562)
    at clojure.lang.Compiler.analyze(Compiler.java:6361)
    at clojure.lang.Compiler.analyze(Compiler.java:6322)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3624)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6562)
    at clojure.lang.Compiler.analyze(Compiler.java:6361)
    at clojure.lang.Compiler.analyze(Compiler.java:6322)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
    at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6009)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
    at clojure.lang.Compiler.analyze(Compiler.java:6361)
    at clojure.lang.Compiler.analyze(Compiler.java:6322)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5139)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3751)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6558)
    at clojure.lang.Compiler.analyze(Compiler.java:6361)
    at clojure.lang.Compiler.eval(Compiler.java:6616)
    at clojure.lang.Compiler.eval(Compiler.java:6609)
    at clojure.lang.Compiler.load(Compiler.java:7064)
    at clojure.lang.Compiler.loadFile(Compiler.java:7020)
    at clojure.main$load_script.invoke(main.clj:299)
    at clojure.main$init_opt.invoke(main.clj:304)
    at clojure.main$initialize.invoke(main.clj:332)
    at clojure.main$null_opt.invoke(main.clj:367)
    at clojure.main$main.doInvoke(main.clj:445)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve var: o/*nrepl-port* in this context
    at clojure.lang.Util.runtimeException(Util.java:219)
    at clojure.lang.Compiler$TheVarExpr$Parser.parse(Compiler.java:650)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
    ... 34 more
Compilation failed.
alexander-yakushev commented 10 years ago

Seems like you've updated to newer lein-droid, but not neko. The latest versions of them are lein-droid 0.2.0-preview1 and neko 3.0.0-preview1. You are safe to use new Neko dependency unless you used setup-action-bar and tab-listener functions. These two functions have changed calling convention a little, so you can check with the Action bar page for new doc on them.

krisc commented 10 years ago

You're moving so fast it's hard to keep up ;) Thanks again.

alexander-yakushev commented 10 years ago

Yeah, sorry about that. I sincerely tried to work that around for older versions so it wouldn't crash so horribly, but I wasn't able to.