marick/lein-midje — Issue #13: lein midje --lazytest fails even though lein midje works, colorizes on Windows
Author: acgetchell
Created: 2012-01-08 08:22:05+00:00
State: open

PS C:\Projects\CDT\Newton> lein version
Leiningen 1.7.0-SNAPSHOT on Java 1.7.0_01 Java HotSpot(TM) 64-Bit Server VM
PS C:\Projects\CDT\Newton> ls $env:userprofile/.lein/plugins
PS C:\Projects\CDT\Newton> cat .\project.clj
(defproject Newton "1.0.0-SNAPSHOT"
:description "Newtonian Approximation for Causal Dynamical Triangulations in
Clojure"
:url "https://github.com/ucdavis/CDT"
:dependencies [[org.clojure/clojure "1.3.0"]]
:marginalia {:javascript["mathjax/MathJax.js"]}
:test-selectors {:default (fn [v] (not (:utilities v)))
:utilities :utilities
:all (fn [_] true)}
:dev-dependencies [[lein-ring "0.4.5"]
[lein-marginalia "0.6.1"]
[midje "1.3.1"]
[lein-midje "1.0.7"]
[com.stuartsierra/lazytest "1.2.3"]]
:repositories {"stuart" "http://stuartsierra.com/maven2"})
PS C:\Projects\CDT\Newton> lein clean
PS C:\Projects\CDT\Newton> lein deps
[INFO] artifact org.clojure:clojure: checking for updates from clojars
[INFO] artifact org.clojure:clojure: checking for updates from stuart
[INFO] artifact org.clojure:clojure: checking for updates from central
Copying 2 files to C:\Projects\CDT\Newton\lib\dev
PS C:\Projects\CDT\Newton> lein midje
All claimed facts (4) have been confirmed.
PS C:\Projects\CDT\Newton> lein midje --lazytest
#

======================================================================
At #
Reloading Newton.test.utilities, Newton.utilities, Newton.simplex
ERROR: #
java.lang.ClassCastException: clojure.lang.PersistentList cannot be cast to cloj
ure.lang.IFn

←[31mERROR while loading:←[0m
#
at lazytest.watch$reload_and_run.invoke(watch.clj:23)
at lazytest.watch$reloading_runner$fn__352.invoke(watch.clj:35)
at clojure.lang.AFn.run(AFn.java:24)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

======================================================================
java.lang.ClassCastException: clojure.lang.PersistentList cannot be cast to cloj
ure.lang.IFn
at lazytest.watch$reload_and_run.invoke(watch.clj:23)
at lazytest.watch$reloading_runner$fn__352.invoke(watch.clj:35)
At #
Reloading Newton.simplex
ERROR: #

←[31mERROR while loading:←[0m
#
at clojure.lang.AFn.run(AFn.java:24)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Terminate batch job (Y/N)? y
PS C:\Projects\CDT\Newton>

Also colorizing wrongly, even though MIDJE_COLORIZE is set to false:

PS C:\Projects\CDT\Newton> $env:midje_colorize
false