On Tue, 29 Mar 2011 16:49:48 -0700 (PDT)
Phil Hagelberg <p...@hagelb.org> wrote:
> On Mar 28, 10:24 pm, Andy Fingerhut <andy.finger...@gmail.com> wrote:
> > And I should have known about this before, but had not used it.  It adds to 
> > Leiningen the capability to search, and I'm not sure, but perhaps also add 
> > dependencies that were found:
> >
> > https://github.com/Licenser/lein-search
> The part
> that modifies project.clj to insert new dependencies will probably not
> be merged because 0) abritrary code may be embedded in project.clj, so
> the :dependencies list is not necessarily a data structure you can
> just splice however you feel like and 1) it's basic text editing;
> asking Leiningen to do it for you is hardly more convenient than doing
> it yourself. It could be done in a 3rd-party plugin with caveats that
> it will not always work correctly though.

Being able to type "lein add <library>" and have it take care of
everything is a lot more convenient than typing "lein search
<library>", selecting the appropriate stretch of text, copying it to
the clipboard (or not, if you're brave), switching to an editor,
finding the right place to insert it, pasting the clipboard, then
saving the file.

This seems to be a downside to switching from XML to Clojure. Not that
I think that was a bad idea - the upsides far outweigh this.

Maybe project.clj should be automatically merged with a project.xml
when lein runs, where project.xml is created with a "for machine
editing only - humans edit project.clj" comment at the top. Then tasks
could edit project.xml without running into those problems.

      <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Software developer/SCM consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
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