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