this looks awesome, tried it out on a project i have but sadly got the
exception below. i'll try and figure it out later when i have more
time to see if its something specific to my project, but thought i
would let you know in case it is something obvious (it failed from
both slime and lein)

Exception in thread "main" java.lang.Exception: prefix cannot be nil
(NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5440)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5391)
        at clojure.core$eval.invoke(core.clj:2382)
        at slam.hound.regrow$check_for_failure.invoke(regrow.clj:31)
        at slam.hound.regrow$regrow.invoke(regrow.clj:72)
        at slam.hound.regrow$regrow.invoke(regrow.clj:70)
        at slam.hound$reconstruct.invoke(hound.clj:10)
        at user$eval368.invoke(NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5424)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        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$null_opt.invoke(main.clj:279)
        at clojure.main$main.doInvoke(main.clj:354)
        at clojure.lang.RestFn.invoke(RestFn.java:422)
        at clojure.lang.Var.invoke(Var.java:369)
        at clojure.lang.AFn.applyToHelper(AFn.java:165)
        at clojure.lang.Var.applyTo(Var.java:482)
        at clojure.main.main(main.java:37)
Caused by: java.lang.Exception: prefix cannot be nil
        at clojure.core$load_libs.doInvoke(core.clj:4802)
        at clojure.lang.RestFn.applyTo(RestFn.java:138)
        at clojure.core$apply.invoke(core.clj:544)
        at clojure.core$use.doInvoke(core.clj:4880)
        at clojure.lang.RestFn.invoke(RestFn.java:409)
        at 
clj_lbm.core$eval386$loading__4410__auto____387.invoke(NO_SOURCE_FILE:1)
        at clj_lbm.core$eval386.invoke(NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5424)
        ... 22 more


On Mon, Apr 25, 2011 at 8:05 PM, Phil Hagelberg <p...@hagelb.org> wrote:
> So I just threw together a little tool to help with ns forms. I find
> often they accumulate a bunch of cruft over time where you no longer
> need a given :use or :require form. And sometimes you don't feel like
> finding exactly where on the classpath a given class is. Or maybe
> you're too lazy to type it; whatever. Slamhound helps with that.
>
> (ns my.namespace
>  "some doc string")
>
> (defn -main [& args]
>  (pprint args)
>  (io/copy (ByteArrayInputStream. (.getBytes "hello"))
>           (first args)))
>
> Look at that; all bare, missing all kinds of necessary stuff.
> Disgraceful. Release the hound!
>
> $ lein slamhound src/my/namespace.clj
>
> (ns my.namespace
>  "I have a doc string."
>  (:use [clojure.pprint :only [pprint]])
>  (:require [clojure.java.io :as io])
>  (:import (java.io ByteArrayInputStream)))
>
> Tada! (also featuring Emacs integration: M-x slamhound)
>
> Enjoy: https://github.com/technomancy/slamhound
>
> -Phil
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to