clojure - leiningen midje tests not working in Intellij -
consider following (minimal) leiningen project
./project.clj:
(defproject repro "0.1.0-snapshot" :dependencies [[org.clojure/clojure "1.5.1"] [midje "1.5.1"]])
./repro/src/repro/core.clj:
(ns repro.core)
./repro/test/repro/core_test.clj:
(ns repro.core-test (:require [repro.core :refer :all] [midje.sweet :refer :all])) (facts "about numbers" (fact "trivial" 1 => 1) )
if have leiningen midje plugin installed, runs @ command prompt follows:
lein clean lein midje ~~> checks (1) succeeded.
however, if import leiningen project intellij 12.1.5 community edition, fat stack trace:
exception in thread "main" java.lang.exceptionininitializererror @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:270) ... @ java.lang.reflect.method.invoke(method.java:606) @ com.intellij.rt.execution.application.appmain.main(appmain.java:120) caused by: java.lang.nullpointerexception @ java.util.concurrent.concurrenthashmap.hash(concurrenthashmap.java:333) @ java.util.concurrent.concurrenthashmap.get(concurrenthashmap.java:988) @ clojure.lang.namespace.find(namespace.java:188) @ clojure.core$find_ns.invoke(core.clj:3728) @ clojure.core$the_ns.invoke(core.clj:3760) @ clojure.core$ns_name.invoke(core.clj:3767) @ midje.bootstrap$bootstrap.invoke(bootstrap.clj:8) @ midje.sweet__init.load(unknown source) @ midje.sweet__init.<clinit>(unknown source) ... 37 more
looks la clojure + intellij can't find of midje's prerequisites, odd, because la clojure running classpaths out of leiningen .m2
directory.
i've looked midje plugin intellij, no luck far.
i need because although happy use emacs + leiningen, team wants intellij.
Comments
Post a Comment