Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread gaz jones
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)

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread Phil Hagelberg
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

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread Aaron Bedra
I love you Phil. On 04/25/2011 09:05 PM, Phil Hagelberg 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

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread Phil Hagelberg
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

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread James Reeves
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)

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread .Bill Smith
That's a great idea, Phil. Thanks for contributing! -- 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.

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread Phil Hagelberg
On Apr 26, 12:58 pm, James Reeves jree...@weavejester.com wrote: 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) That's by

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread James Reeves
On 26 April 2011 22:16, Phil Hagelberg p...@hagelb.org wrote: On Apr 26, 12:58 pm, James Reeves jree...@weavejester.com wrote: 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)

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread Phil Hagelberg
On Apr 26, 2:56 pm, James Reeves jree...@weavejester.com wrote: On 26 April 2011 22:16, Phil Hagelberg p...@hagelb.org wrote: That's by design; it only works when the :as alias is the same as the last segment of the namespace name. Ah, well even if I use string/trim it throws the same

Re: ANN: Slamhound (for reconstructing ns forms)

2011-04-26 Thread James Reeves
On 26 April 2011 23:49, Phil Hagelberg p...@hagelb.org wrote: On Apr 26, 2:56 pm, James Reeves jree...@weavejester.com wrote: On 26 April 2011 22:16, Phil Hagelberg p...@hagelb.org wrote: However, there was an unrelated bug causing issues when uncompilable namespaces were on the classpath.