clojure - Can't get generative.test working with pedestal.io -
here recipe failure:
lein new pedestal-app generative-app
i modify project.clj following:
(defproject generative-app "0.0.1-snapshot" :description "fixme: write description" :repl-options {:init (use 'dev)} :dependencies [[org.clojure/test.generative "0.4.0"] [org.clojure/clojure "1.5.1"] [org.clojure/clojurescript "0.0-1586"] [domina "1.0.1"] [ch.qos.logback/logback-classic "1.0.7" :exclusions [org.slf4j/slf4j-api]] [io.pedestal/pedestal.app "0.1.10"] [io.pedestal/pedestal.app-tools "0.1.10"]] :profiles {:dev {:source-paths ["dev"]}} :min-lein-version "2.0.0" :source-paths ["app/src" "app/templates"] :resource-paths ["config"] :target-path "out/" :aliases {"dumbrepl" ["trampoline" "run" "-m" "clojure.main/main"]})
basically, added test.generative
, made execute (use 'dev)
@ startup.
i enter project , type lein repl
, error:
exception in thread "main" java.io.filenotfoundexception: not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath: .... @ io.pedestal.app_tools.server$eval3008$loading__4910__auto____3009.invoke(server.clj:12) .... @ dev$eval1071$loading__4910__auto____1072.invoke(dev.clj:1)
clearly, when (use 'dev)
run, goes haywire. don't know what.
if take swing @ it, put steps above project @ git@github.com:samedhi/generative-app.git , can
> git clone git@github.com:samedhi/generative-app.git > cd generative-app > lein repl
thanks help.
the error coming clojure.tools.namespace.
run lein deps :tree
show dependency tree - in case, relevant bits are:
[io.pedestal/pedestal.app-tools "0.1.11-20130719.140954-2"] [org.clojure/tools.namespace "0.2.1"]
and
[org.clojure/test.generative "0.4.0"] [org.clojure/tools.namespace "0.1.1"]
you can see conflict - test.generative 0.4.0
depends on earlier version of tools.namespace
.
add exclusion relevant line of project.clj
:
[org.clojure/test.generative "0.4.0" :exclusions [org.clojure/tools.namespace]]
this make project compile, , can run (use dev)
, (start)
fine. however, there's risk after excluding tools.namespace 0.1.1
, test.generative no longer work (if relies on functions in tools.namespace 0.1.1
, subsequently deprecated). fine, if not, may need wait test.generative
catch later version of tools.namespace
.
Comments
Post a Comment