sattvik / leinjacker

A library for Leiningen plug-in authors.
42 stars 11 forks source link

Better feedback on assertion fail #10

Closed JulianBirch closed 10 years ago

JulianBirch commented 10 years ago

Hi, I'm trying to run @weavejester 's Codox on my project (JulianBirch/arianna) and I get this:

Caused by: java.lang.AssertionError: Assert failed: (vector? (:dependencies project [])) at leinjacker.deps$add_if_missing.invoke(deps.clj:43)

Which, sadly, isn't really telling me enough to actually figure out what the problem is.

Both the project dependencies and my .lein profile are vectors, so I'm pretty confused.

tobias commented 10 years ago

What version of codox are you using? This was an issue with an older version of leinjacker, but doesn't exist in 0.4.1 or newer. Codox 0.6.6 should be pulling in a good version of leinjacker.

JulianBirch commented 10 years ago

I couldn't figure out what was going on, because I was using 0.6.6 and it was the only version I'd ever installed on the machine. Slept on it and realized that it might be one of the other plugins. A binary search revealed that [lein-ring "0.7.5"] was causing the problem.

Thanks for your help, I wouldn't have cracked it if I hadn't known that codox 0.6.6 had the correct version.