Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Delete lein-slamhound plugin.

  • Loading branch information...
commit eebbe58e6d8966902af06ca57fedbbec5e5f8826 1 parent 226cdec
@technomancy authored
View
11 README.md
@@ -49,14 +49,17 @@ Take a namespace with a sparse ns form that won't compile:
Then run slamhound on it:
- $ lein slamhound src/my/namespace.clj # after: spits out new ns form
+ $ lein slamhound src/my/namespace.clj # [... thinking ...]
+ $ cat src/my/namespace.clj # after: spits out new ns form
(ns my.namespace
"I have a doc string."
(:require [clojure.java.io :as io]
[clojure.pprint :refer [pprint]])
(:import (java.io ByteArrayInputStream)))
+Like magic.
+
## Repl Usage
You can do it manually from the repl too to avoid the slow startup time:
@@ -109,7 +112,11 @@ vars being present:
If you are still using Leiningen 1.x you can use an older version
of Slamhound:
- $ lein plugin install slamhound 1.2.0
+ $ lein plugin install lein-slamhound 1.2.0
+
+The `lein-slamhound` plugin is deprecated, and the `:aliases` approach
+above is recommended for users of Leiningen 2. However, the plugin
+still works for people still stuck on an old Leiningen version.
## License
View
5 lein-slamhound/.gitignore
@@ -1,5 +0,0 @@
-pom.xml
-*jar
-/lib/
-/classes/
-.lein-deps-sum
View
15 lein-slamhound/README.md
@@ -1,15 +0,0 @@
-# lein-slamhound
-
-Leiningen plugin to use Slamhound, a tool for reconstructing ns forms
-from scratch.
-
-## Usage
-
-Add `lein-slamhound "1.3.0-SNAPSHOT"` to your `:plugins`, then run
-`lein slamhound` in a project.
-
-## License
-
-Copyright © 2012 Phil Hagelberg
-
-Distributed under the Eclipse Public License, the same as Clojure.
View
3  lein-slamhound/project.clj
@@ -1,3 +0,0 @@
-(defproject lein-slamhound "1.3.0-SNAPSHOT"
- :description "Leiningen plugin to reconstruct ns forms."
- :eval-in-leiningen true)
View
11 lein-slamhound/src/leiningen/slamhound.clj
@@ -1,11 +0,0 @@
-(ns leiningen.slamhound
- (:use [leiningen.compile :only [eval-in-project]]))
-
-(defn slamhound
- "Rip your ns form apart and stitch together the pieces."
- [project filename]
- (eval-in-project (update-in project [:dependencies] (fnil into {})
- {'slamhound "1.3.0-SNAPSHOT"})
- `(do (shutdown-agents)
- (println (slam.hound/reconstruct ~filename)))
- nil nil '(require 'slam.hound)))
View
2  src/slam/hound/regrow.clj
@@ -24,7 +24,7 @@
(re-find #"No such var: \w+/([-_\w\$\?!\*\>\<]+)" msg))))
(defn- failure-details [msg]
- (when-let [sym (missing-sym-name msg)]
+ (if-let [sym (missing-sym-name msg)]
{:missing sym
:possible-types (cond (class-name? sym) [:import :require-refer]
(re-find #"Unable to resolve var: \w+/" msg)
View
2  src/slam/hound/search.clj
@@ -9,6 +9,8 @@
;;; Mostly taken from leiningen.util.ns and swank.util.class-browse.
+;; TODO: replace with bultitude? but that doesn't do classes
+
;;; Clojure namespaces
(def classpath-files
Please sign in to comment.
Something went wrong with that request. Please try again.