On Sat, Jul 16, 2011 at 7:09 PM, Wei <yayits...@gmail.com> wrote:
> I tracked the issue down to lein-nailgun (I believe it requires some
> dependencies incompatible with the new version of lein), but I'm unsure how
> to fix it.

The lein-nailgun plugin has lots of problems:

* It depends upon an ancient version of Leiningen. (c. December of 09)

* It declares its dependency upon Leiningen when this should be implicit.

* It starts a background thread without blocking the main thread.
(interferes with Leiningen's workaround to this Clojure bug:
http://dev.clojure.org/jira/browse/CLJ-124)

* It appears to have separate lines development a number of forks
without coordination.

The first three problems may be addressed in one of the forks; I did
not try them all.

The two problems can be solved by :exclusions in your project.clj:

    :dev-deps [[lein-nailgun "0.1.0" :exclusions [leiningen]]]

The third problem just needs a @(promise) added at the end of the form
that starts the background nailgun thread.

> A more general question: how do you find the latest version number of a 
> library?

    $ lein search lein-nailgun
     == Results from clojars - Showing page 1 / 4 total
    [lein-nailgun "0.1.0"] leiningen plugin to run nailgun server
    [org.clojars.brandonw/lein-nailgun "1.0.0"] A leiningen plugin to
launch a vimclojure nailgun server.
    [org.clojars.brandonw/lein-nailgun "1.0.0-SNAPSHOT"] A leiningen
plugin to launch a vimclojure nailgun server.
    [org.clojars.gfodor/lein-nailgun "1.1.0"] A leiningen plugin to
launch a vimclojure nailgun server.

Here you can see that the canonical version of lein-nailgun is way
behind and the forks have continued development independently. Either
the maintainer disappeared without finding a suitable replacement or
the forkers just haven't bothered to try to get their work back
upstream. Either one is bad news.

-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

Reply via email to