librelist archives

« back to archive

Can I get Leiningen to produce a more detailed error during startup?

Can I get Leiningen to produce a more detailed error during startup?

From:
Joe Corneli
Date:
2015-05-14 @ 08:23
I'm using Leiningen under CIDER.  I tweaked the project.clj and ended up
producing an error.  I've found a simple solution to that, but I'm
curious to know if there is a way to produce more a detailed backtrace
(with debugging information), since I still don't understand the error I
was getting.

Specifically, when I loaded the project, I got this error:

error in process sentinel: Could not start nREPL server: 
java.lang.IllegalArgumentException: No implementation of method: :as-file 
of protocol: #'clojure.java.io/Coercions found for class: 
clojure.lang.Symbol
 at clojure.core$_cache_protocol_fn.invoke (core_deftype.clj:544)
    clojure.java.io$fn__8572$G__8556__8577.invoke (io.clj:35)
    clojure.java.io$file.invoke (io.clj:414)
    leiningen.core.project$absolutize.invoke (project.clj:423)

A similar query was addressed here:
http://comments.gmane.org/gmane.comp.java.clojure.leiningen/715

In my case, it is hard to see what the Symbol in question might be.