technomancy/leiningen — Issue #425: Multiple java source paths
Author: ljos
Created: 2012-02-28 17:12:28+00:00
State: open

This happens upon multiple java source paths in leiningen 1.7.0:

Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector (project.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.load(Compiler.java:5857)
at clojure.lang.Compiler.loadFile(Compiler.java:5820)
at clojure.lang.RT$3.invoke(RT.java:296)
at leiningen.core$read_project$fn__2123.invoke(core.clj:129)
at leiningen.core$read_project.invoke(core.clj:128)
at leiningen.core$read_project.invoke(core.clj:132)
at leiningen.core$_main.doInvoke(core.clj:322)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:334)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:471)
at clojure.java.io$fn__7336$G__7331__7341.invoke(io.clj:34)
at clojure.java.io$file.invoke(io.clj:401)
at leiningen.util.paths$normalize_path.invoke(paths.clj:6)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$partial$fn__3682.doInvoke(core.clj:2009)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core$eval44$fn__45.invoke(project.clj:1)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.lang.Var.alterRoot(Var.java:272)
at clojure.core$alter_var_root.doInvoke(core.clj:4351)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core$eval44.invoke(project.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 25 more

The same project works perfectly fine in leiningen 1.6.2.