Fork me on GitHub
#leiningen
<
2017-06-21
>
j-po01:06:36

I'm working on an open-source project that uses an old version of Clojure that breaks some of the plugins in my user profile. Is there a way to automatically exclude those plugins based on the Clojure version?

j-po01:06:17

(Specifically I'm using Ultra (https://github.com/venantius/ultra) while poking at some Ring (https://github.com/ring-clojure/ring) behavior. Ring specifies Clojure 1.5.1 and Ultra doesn't currently support anything below 1.6)

bbrinck15:06:47

I’m running a lein task and I’m getting an exception. In order to debug the issue, I’d like to trace back the exception to the source, but at a certain point, I don’t see any more stack frames and instead see “... 46 more”. Is this something that can be configured in lein so I can print out the entire trace?

bbrinck15:06:27

Alternately, is there a way to run any lein command on the REPL, so I could interactively inspect the trace?

practicalli-john19:06:58

@j-po ring has a default dependency of Clojure 1.5.1, however ring supports Clojure 1.5.1 through to 1.8.0

practicalli-john19:06:03

If you look at the ring source, it shows the use of Leiningen profiles to support different versions, this may be a relevant starting point for you https://github.com/ring-clojure/ring/blob/master/ring-core/project.clj

practicalli-john19:06:35

More examples can be found in the Leiningen sample.project.clj file https://github.com/technomancy/leiningen/blob/stable/sample.project.clj

j-po20:06:02

Oh, so it does! Thanks! If I were working on something that genuinely didn't support a version of Clojure compatible with a plugin, would there be a way to conditionally disable the plugin in my profiles.clj?