Leiningen 1.2.0 released!

16 views
Skip to first unread message

Phil Hagelberg

unread,
Jul 18, 2010, 5:40:34 PM7/18/10
to clo...@googlegroups.com
I just pushed out a new release of Leiningen, a Clojure build tool,
with lots of help from many contributors.

This fixes the longstanding repl version bug, expands the flexibility
of plugins, adds support for working on multiple projects in parallel,
and greatly improves the documentation.

Users of 1.1.0 can upgrade with "lein upgrade". Otherwise download the
script from http://github.com/technomancy/leiningen/raw/stable/bin/lein,
place it on your $PATH and make it executable, and then run "lein
self-install" to get going. New users should check out the new
Tutorial: http://github.com/technomancy/leiningen/blob/master/TUTORIAL.md

A complete list of the new features and bug fixes can be found at
http://github.com/technomancy/leiningen/blob/master/NEWS

Enjoy!
-Phil

defn

unread,
Jul 18, 2010, 8:17:13 PM7/18/10
to Clojure
I think I speak for everyone when I say: "thank you".

Devin

On Jul 18, 4:40 pm, Phil Hagelberg <p...@hagelb.org> wrote:
> I just pushed out a new release of Leiningen, a Clojure build tool,
> with lots of help from many contributors.
>
> This fixes the longstanding repl version bug, expands the flexibility
> of plugins, adds support for working on multiple projects in parallel,
> and greatly improves the documentation.
>
> Users of 1.1.0 can upgrade with "lein upgrade". Otherwise download the
> script fromhttp://github.com/technomancy/leiningen/raw/stable/bin/lein,

Nicolas Buduroi

unread,
Jul 19, 2010, 12:18:38 AM7/19/10
to Clojure
That's really awesome.

I'd like to know more about the support for working on multiple
projects.

On Jul 18, 5:40 pm, Phil Hagelberg <p...@hagelb.org> wrote:
> I just pushed out a new release of Leiningen, a Clojure build tool,
> with lots of help from many contributors.
>
> This fixes the longstanding repl version bug, expands the flexibility
> of plugins, adds support for working on multiple projects in parallel,
> and greatly improves the documentation.
>
> Users of 1.1.0 can upgrade with "lein upgrade". Otherwise download the
> script fromhttp://github.com/technomancy/leiningen/raw/stable/bin/lein,

LordGeoffrey

unread,
Jul 19, 2010, 12:11:43 AM7/19/10
to clo...@googlegroups.com
I did the upgrade. seemed okay. I a resumed doing the enlive tutorial,
and now when i :
user=> (load "tutorial/scrape1")
nil

nothing comes back.
type returns, nothing.
type (+ 1 1), and i get:
user=> 2

Odd.
From then on works as expected. Even when (load "scrape1")

------
tutorial : http://github.com/swannodette/enlive-tutorial/
source for scrape1:

(ns tutorial.scrape1
(:require [net.cgrand.enlive-html :as html]))

(def *base-url* "http://news.ycombinator.com/")

(defn fetch-url [url]
(html/html-resource (java.net.URL. url)))

(defn hn-headlines []
(map html/text (html/select (fetch-url *base-url*) [:td.title :a])))

(defn hn-points []
(map html/text (html/select (fetch-url *base-url*) [:td.subtext
html/first-child])))

(defn print-headlines-and-points []
(doseq [line (map #(str %1 " (" %2 ")") (hn-headlines) (hn-points))]
(println line)))

Phil Hagelberg

unread,
Jul 19, 2010, 11:27:29 AM7/19/10
to clo...@googlegroups.com
On Sun, Jul 18, 2010 at 9:11 PM, LordGeoffrey
<lordge...@optusnet.com.au> wrote:
> I did the upgrade. seemed okay. I a resumed doing the enlive tutorial, and
> now when i :
> user=> (load "tutorial/scrape1")
> nil
>
> nothing comes back.
> type returns, nothing.
> type (+ 1 1), and i get:
> user=> 2

There are a few timing issues with the repl task. Unfortunately the
ant library we are using to launch the project's sub-JVM doesn't
support stdin, so we have to use a socket repl and basically
re-implement a telnet client. But there are still a few timing issues
to work out with when the socket gets flushed. Unfortunately the
problems aren't possible to reproduce consistently.

It's tracked here: http://github.com/technomancy/leiningen/issues#issue/71

-Phil

Daniel Gagnon

unread,
Jul 19, 2010, 6:00:15 PM7/19/10
to clo...@googlegroups.com
Impressive list of new features!

By the way, what's left to do for the Windows support to stop being experimental?

ka

unread,
Jul 20, 2010, 5:10:46 AM7/20/10
to Clojure
Awesome awesome new features !!

Yes, when does windows support stop being experimental ?

Even though one of the new features is -
* Added experimental Windows support.

Has anyone tried lein 1.2 on windows (with the lein.bat on
http://github.com/technomancy/leiningen) ?



Shantanu Kumar

unread,
Jul 20, 2010, 5:54:04 AM7/20/10
to Clojure
On Windows, Lein 1.2 fails (though Lein 1.1 works) with the following
message:

D:\learn\hello>lein12 test
Exception in thread "main" clojure.lang.LispReader$ReaderException:
java.lang.Exception: Invalid token: D:
at clojure.lang.LispReader.read(LispReader.java:180)
at clojure.core$read.invoke(core.clj:2884)
at clojure.core$read.invoke(core.clj:2882)
at clojure.main$eval_opt.invoke(main.clj:233)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:1261)
at clojure.lang.Var.invoke(Var.java:477)
at clojure.lang.AFn.applyToHelper(AFn.java:412)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.Exception: Invalid token: D:
at clojure.lang.LispReader.interpretToken(LispReader.java:286)
at clojure.lang.LispReader.read(LispReader.java:171)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:
1060)
at clojure.lang.LispReader$ListReader.invoke(LispReader.java:
900)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:
1051)
at clojure.lang.LispReader$ListReader.invoke(LispReader.java:
900)
at clojure.lang.LispReader.read(LispReader.java:145)
... 11 more

It seems the ":" character (e.g. in "D:") needs to be escaped
somewhere?

Regards,
Shantanu

Phil Hagelberg

unread,
Jul 20, 2010, 9:51:38 AM7/20/10
to clo...@googlegroups.com

On Mon, Jul 19, 2010 at 3:00 PM, Daniel Gagnon <redal...@gmail.com> wrote:
> By the way, what's left to do for the Windows support to stop being
> experimental?

Mostly we need volunteers to port the changes from the bash script to the batch file and test the changes. Also I don't think the self-install feature will ever work with lein.bat due to the lack of a way to download files. We may switch to a powershell script to work around this limitation; I don't know enough about Windows to say if that's a good idea.

There's a thread on the Leiningen mailing list ("Finally: Leiningen 1.2") to check if you want to help out.

-Phil

Brian Carper

unread,
Jul 20, 2010, 12:55:12 PM7/20/10
to Clojure
On Jul 18, 5:17 pm, defn <dev...@gmail.com> wrote:
> I think I speak for everyone when I say: "thank you".

inc

--Brian

Jeff Rose

unread,
Jul 21, 2010, 6:05:57 AM7/21/10
to Clojure
Absolutely! Leiningen and its plugin system are wonderful in their
simplicity. Thanks a lot.

-Jeff

Daniel Gagnon

unread,
Jul 20, 2010, 5:43:20 PM7/20/10
to clo...@googlegroups.com
On Tue, Jul 20, 2010 at 9:51 AM, Phil Hagelberg <ph...@hagelb.org> wrote:

On Mon, Jul 19, 2010 at 3:00 PM, Daniel Gagnon <redal...@gmail.com> wrote:
> By the way, what's left to do for the Windows support to stop being
> experimental?

Mostly we need volunteers to port the changes from the bash script to the batch file and test the changes. Also I don't think the self-install feature will ever work with lein.bat due to the lack of a way to download files. We may switch to a powershell script to work around this limitation; I don't know enough about Windows to say if that's a good idea.



Bummer, I know nothing about batch files...

As for the self install, what about writing the downloader in Java and invoking it from the batch file?

Or using izPack which is the most popular next-next-finish installer for Java? It would be very idiomatic for Windows.

Phil Hagelberg

unread,
Jul 21, 2010, 2:23:51 PM7/21/10
to clo...@googlegroups.com
On Tue, Jul 20, 2010 at 2:43 PM, Daniel Gagnon <redal...@gmail.com> wrote:
>> Mostly we need volunteers to port the changes from the bash script to the
>> batch file and test the changes. Also I don't think the self-install feature
>> will ever work with lein.bat due to the lack of a way to download files. We
>> may switch to a powershell script to work around this limitation; I don't
>> know enough about Windows to say if that's a good idea.
>
> Bummer, I know nothing about batch files...
> As for the self install, what about writing the downloader in Java and
> invoking it from the batch file?

Sure, but by the time we can run the Java we don't need the
self-install functionality any more. =)

> Or using izPack which is the most popular next-next-finish installer for
> Java? It would be very idiomatic for Windows.

Sure, that could work. Please chime in on the Leiningen mailing list
if you'd like to help out with this once the batch file is updated.

-Phil

Reply all
Reply to author
Forward
0 new messages