1.1.0 seems to have regressed. I've added slamhound as a dependency:

(defproject foobar "1.0.0-SNAPSHOT"
  :description "FIXME: write description"
  :dependencies [[org.clojure/clojure "1.2.1"]]
  :dev-dependencies [[slamhound "1.1.0"]])

Then added a function to "src/foobar/core.clj":

(ns foobar.core)
(str/trim " hello ")

When I start a REPL and try to slamhound it, it instead throws an exception:

user=> (require 'slam.hound)
nil
user=> (slam.hound/reconstruct "src/foobar/core.clj")
java.lang.Exception: No such namespace: str (core.clj:2)

And the same occurs with the Leiningen plugin:

$ lein slamhound src/foobar/core.clj
Exception in thread "main" java.lang.Exception: No such namespace: str
(core.clj:2)
...

- James

On 26 April 2011 19:32, Phil Hagelberg <p...@hagelb.org> wrote:

> On Apr 26, 6:25 am, gaz jones <gareth.e.jo...@gmail.com> wrote:
> > 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)
>
> I just pushed 1.1.0 which should solve most issues causing this; if
> not please let me know.
>
> -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