technomancy / slamhound

Slamhound rips your namespace form apart and reconstructs it.
Other
473 stars 38 forks source link

Exception thrown #33

Closed AlexBaranosky closed 11 years ago

AlexBaranosky commented 11 years ago

Still seeing exceptions for one case when I run Slamhound on the Runa codebase. I'll fix it when I get some time.

It's because I'm attempting to destructure some form that is not always in the shape I assumed it would be in,

Failed to reconstruct: #<File test/furtive/test/unit/spec_utils/scenario.clj>
java.lang.UnsupportedOperationException: nth not supported on this type: Keyword
    at clojure.lang.RT.nthFrom(RT.java:846)
    at clojure.lang.RT.nth(RT.java:796)
    at slam.hound.regrow$referred_to_in_originals_pred$fn__109$fn__113.invoke(regrow.clj:109)
    at clojure.core$some.invoke(core.clj:2390)
    at slam.hound.regrow$referred_to_in_originals_pred$fn__109.invoke(regrow.clj:107)
AlexBaranosky commented 11 years ago

Never mind, I had a transitive dependency on the buggy version of slamhound floating around my classpath.