Created
May 16, 2015 19:06
-
-
Save laurentpetit/7dd34d241a3422e0db55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample [master●] % tree -a | |
. | |
├── .gitignore | |
├── project.clj | |
└── src | |
└── sample | |
└── core.clj | |
2 directories, 3 files | |
sample [master●] % cat project.clj | |
(defproject lein-skummet-sample "0.0.1-SNAPSHOT" | |
:dependencies [[org.skummet/clojure "1.7.0-beta3-r1"]] | |
:exclusions [[org.clojure/clojure]] | |
:profiles {:default []} | |
:plugins [[org.skummet/lein-skummet "0.2.1"]] | |
:main sample.core | |
:aot :all | |
:skummet-skip-vars ["#'leantest.core/wont-be-lean"]) | |
sample [master●] % lein do skummet compile, skummet jar | |
Compiling sample.core | |
compiling: (clojure.core/in-ns (quote sample.core)) --- user | |
compiling: ((clojure.core/fn loading__1495__auto__ [] (. clojure.lang.Var (clojure.core/pushThreadBindings {clojure.lang.Compiler/LOADER (.getClassLoader (.getClass loading__1495__auto__))})) (try (clojure.core/gen-class :name "sample.core" :impl-ns sample.core :main true) (clojure.core/refer (quote clojure.core)) (finally (. clojure.lang.Var (clojure.core/popThreadBindings)))))) --- sample.core | |
compiling: (if (.equals (quote sample.core) (quote clojure.core)) nil (do (clojure.core/dosync (clojure.core/commute (clojure.core/deref (var clojure.core/*loaded-libs*)) clojure.core/conj (quote sample.core))) nil)) --- sample.core | |
compiling: (def wont-be-lean (clojure.core/fn ([] (str "foo" "bar")))) --- sample.core | |
compiling: (def foo (clojure.core/fn ([x] (println "Hello, World!" x) (println (wont-be-lean))))) --- sample.core | |
compiling: (def -main (clojure.core/fn ([& args] (foo (or (first args) 42))))) --- sample.core | |
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: *warn-on-reflection* in this context, compiling:(/private/var/folders/v8/0y9m715s5qv49q0vbxsl10r40000gn/T/form-init4719001585654774894.clj:1:129) | |
at clojure.lang.Compiler.analyze(Compiler.java:6775) | |
at clojure.lang.Compiler.analyze(Compiler.java:6717) | |
at clojure.lang.Compiler$AssignExpr$Parser.parse(Compiler.java:737) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6983) | |
at clojure.lang.Compiler.analyze(Compiler.java:6756) | |
at clojure.lang.Compiler.analyze(Compiler.java:6717) | |
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:6093) | |
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5527) | |
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:4088) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6963) | |
at clojure.lang.Compiler.analyze(Compiler.java:6756) | |
at clojure.lang.Compiler.eval(Compiler.java:7056) | |
at clojure.lang.Compiler.eval(Compiler.java:7048) | |
at clojure.lang.Compiler.load(Compiler.java:7555) | |
at clojure.lang.Compiler.loadFile(Compiler.java:7493) | |
at clojure.main$load_script.invoke(main.clj:275) | |
at clojure.main$init_opt.invoke(main.clj:280) | |
at clojure.main$initialize.invoke(main.clj:308) | |
at clojure.main$null_opt.invoke(main.clj:343) | |
at clojure.main$main.doInvoke(main.clj:421) | |
at clojure.lang.RestFn.invoke(RestFn.java:421) | |
at clojure.lang.Var.invoke(Var.java:423) | |
at clojure.lang.AFn.applyToHelper(AFn.java:156) | |
at clojure.lang.Var.applyTo(Var.java:740) | |
at clojure.main.main(main.java:37) | |
Caused by: java.lang.RuntimeException: Unable to resolve symbol: *warn-on-reflection* in this context | |
at clojure.lang.Util.runtimeException(Util.java:221) | |
at clojure.lang.Compiler.resolveIn(Compiler.java:7315) | |
at clojure.lang.Compiler.resolve(Compiler.java:7259) | |
at clojure.lang.Compiler.analyzeSymbol(Compiler.java:7220) | |
at clojure.lang.Compiler.analyze(Compiler.java:6738) | |
... 24 more | |
Compilation failed: Subprocess failed | |
sample [master●] % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment