Re: Leiningen 2.0.0-preview4

2012-05-15 Thread Alan Shaw
Opened issues for both failures, thanks

-A


On Mon, May 14, 2012 at 2:02 PM, Phil Hagelberg p...@hagelb.org wrote:

 On Sat, May 12, 2012 at 3:22 PM, Alan Shaw noden...@gmail.com wrote:
  In cygwin on win7 I get this:

 Could you open an issue on Github for this?

 I don't know enough about Windows to say what's going on here, but if
 it's on the issue tracker there's a better chance of getting it
 figured out if someone more Windows-savvy can help out.

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


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

Re: Leiningen 2.0.0-preview4

2012-05-14 Thread Alan Shaw
Having another little problem, any help appreciated:




alan@shotwell /cygdrive/c/Workspaces/Clojure-lein
$ lein2 new startingclojure
Generating a project called startingclojure based on the 'default' template.
java.lang.IllegalArgumentException: No implementation of method:
:make-reader of protocol: #'clojure.java.io/IOFactory found for class: nil
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:495)
at clojure.java.io$fn__7795$G__7790__7802.invoke(io.clj:63)
at clojure.java.io$reader.doInvoke(io.clj:96)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at leiningen.new.templates$slurp_resource.invoke(templates.clj:29)
at leiningen.new.templates$renderer$fn__709.doInvoke(templates.clj:79)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at leiningen.new.default$default.invoke(default.clj:15)
at clojure.lang.Var.invoke(Var.java:401)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.core$apply.invoke(core.clj:602)
at leiningen.new$create.doInvoke(new.clj:54)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.new$create.invoke(new.clj:47)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:600)
at leiningen.new$new.doInvoke(new.clj:101)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.core$apply.invoke(core.clj:602)
at leiningen.core.main$resolve_task$fn__699.doInvoke(main.clj:66)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:602)
at leiningen.core.main$apply_task.invoke(main.clj:88)
at leiningen.core.main$_main$fn__731.invoke(main.clj:140)
at leiningen.core.main$_main.doInvoke(main.clj:140)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.core$apply.invoke(core.clj:600)
at clojure.main$main_opt.invoke(main.clj:323)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:413)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)

alan@shotwell /cygdrive/c/Workspaces/Clojure-lein
$ lein2 version
Leiningen 2.0.0-preview3 on Java 1.6.0_31 Java HotSpot(TM) Client VM


On Sat, May 12, 2012 at 4:39 PM, John Gabriele jmg3...@gmail.com wrote:

 On May 12, 7:07 pm, John Gabriele jmg3...@gmail.com wrote:

 Whoops. Typo:
 
  Another important reason for having a good default README.md template
  specifically for libs is that, at some point, I'm guessing that
  clojars.org will extract and render them as html, and it will be nice
  if there's some conventions already in place.

 s/some conventions/some more conventions/

 :)

 Also, re

  Sure, that makes sense. Feel free to open an issue and/or pull request
  on the lein-newnew project for it.

 Great. Will look into that later tonight.

 Thanks,
 ---John

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


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

Re: Leiningen 2.0.0-preview4

2012-05-14 Thread Alan Shaw
Hi,
In cygwin on win7 I get this:

_

$ lein2 upgrade
The script at /cygdrive/c/Users/alan/bin/lein2 will be upgraded to the
latest preview version.
Do you want to continue [Y/n]? Y

Upgrading...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 127 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0Warning: Failed to create the
file /tmp/lein-3060-upgrade: No such file or
Warning: directory
100 7230 100 7230 0 0 5452 0 0:00:01 0:00:01 --:--:-- 33165
curl: (23) Failed writing body (0 != 7230)

$ ls -ld /tmp
drwxrwxrwt+ 1 alan root 0 May 12 15:17 /tmp/

---

Not sure what to do...

-A


On Sat, May 12, 2012 at 1:41 PM, Phil Hagelberg p...@hagelb.org wrote:

 On Sat, May 12, 2012 at 11:06 AM, John Gabriele jmg3...@gmail.com wrote:
  After `lein self-install`, when I first ran `lein help` I get this
  output: https://www.refheap.com/paste/2697. Just a few questions:
 
  * What's the Clojure 1.3.0 jar required for if lein is using 1.4.0
 internally?

 Some of the dependencies for the plugin that provides the `new` task
 declare it, and there's currently no way to prevent these from being
 fetched. I believe this is also causing 1.3.0 to be active for the
 repl task. This is a known issue we hope to address in preview5.

  * Why is it grabbing the Clojure 1.2.1 pom? (though I noticed it does
  not grab the 1.2.1 jar)

 There's probably a version range declaration somewhere that's forcing
 it to examine a number of versions even though it doesn't use them. It
 has to build a full dependency graph before deciding which version
 declarations actually win.

  By the way, I like that you can now pass extra args to `lein new` to
  create a project of a specific type (such as plugin). What do you
  think of adding 2 more stock options: application and library?

 What would the difference between the two be? If it's just a matter of
 whether there's a :main function then it might be simpler just to have
 a commented-out line in project.clj. If there are other differences
 then maybe it would be justified. Note that you can publish your own
 templates to Clojars, just deploy one as name/lein-template and it
 will be used when someone runs `lein new name myproject`.

 -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


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

Re: Leiningen 2.0.0-preview4

2012-05-14 Thread Phil Hagelberg
On Sat, May 12, 2012 at 3:22 PM, Alan Shaw noden...@gmail.com wrote:
 In cygwin on win7 I get this:

Could you open an issue on Github for this?

I don't know enough about Windows to say what's going on here, but if
it's on the issue tracker there's a better chance of getting it
figured out if someone more Windows-savvy can help out.

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


Re: Leiningen 2.0.0-preview4

2012-05-12 Thread John Gabriele
On May 11, 10:02 pm, Phil Hagelberg p...@hagelb.org wrote:


 ## 2.0.0-preview4 / 2012-05-11

 {snip}
 * Use Clojure 1.4.0 internally; plugins have access to new Clojure features.


Hi Phil,

After `lein self-install`, when I first ran `lein help` I get this
output: https://www.refheap.com/paste/2697. Just a few questions:

* What's the Clojure 1.3.0 jar required for if lein is using 1.4.0
internally?

* Why is it grabbing the Clojure 1.2.1 pom? (though I noticed it does
not grab the 1.2.1 jar)

By the way, I like that you can now pass extra args to `lein new` to
create a project of a specific type (such as plugin). What do you
think of adding 2 more stock options: application and library?

Thanks,
---John

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


Re: Leiningen 2.0.0-preview4

2012-05-12 Thread Phil Hagelberg
On Sat, May 12, 2012 at 11:06 AM, John Gabriele jmg3...@gmail.com wrote:
 After `lein self-install`, when I first ran `lein help` I get this
 output: https://www.refheap.com/paste/2697. Just a few questions:

 * What's the Clojure 1.3.0 jar required for if lein is using 1.4.0 internally?

Some of the dependencies for the plugin that provides the `new` task
declare it, and there's currently no way to prevent these from being
fetched. I believe this is also causing 1.3.0 to be active for the
repl task. This is a known issue we hope to address in preview5.

 * Why is it grabbing the Clojure 1.2.1 pom? (though I noticed it does
 not grab the 1.2.1 jar)

There's probably a version range declaration somewhere that's forcing
it to examine a number of versions even though it doesn't use them. It
has to build a full dependency graph before deciding which version
declarations actually win.

 By the way, I like that you can now pass extra args to `lein new` to
 create a project of a specific type (such as plugin). What do you
 think of adding 2 more stock options: application and library?

What would the difference between the two be? If it's just a matter of
whether there's a :main function then it might be simpler just to have
a commented-out line in project.clj. If there are other differences
then maybe it would be justified. Note that you can publish your own
templates to Clojars, just deploy one as name/lein-template and it
will be used when someone runs `lein new name myproject`.

-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


Re: Leiningen 2.0.0-preview4

2012-05-12 Thread John Gabriele
On May 12, 4:41 pm, Phil Hagelberg p...@hagelb.org wrote:
 On Sat, May 12, 2012 at 11:06 AM, John Gabriele jmg3...@gmail.com wrote:

  By the way, I like that you can now pass extra args to `lein new` to
  create a project of a specific type (such as plugin). What do you
  think of adding 2 more stock options: application and library?

 What would the difference between the two be? If it's just a matter of
 whether there's a :main function then it might be simpler just to have
 a commented-out line in project.clj. If there are other differences
 then maybe it would be justified.

Hi Phil,

It's my understanding that the differences are:

  * an app would have `:main foo.core` in the project.clj
  * an app would have the `-main` function in core.clj
  * an app would have a :gen-class in its ns declaration in core.clj

And also different default README's. An app would start with
instructions on how to run the app (`java -jar your-app-0.0.1-
standalone.jar` plus valid options/args) whereas a lib would start
with info on:

  * what to put into your project.clj to use this lib
  * what to `require` in your code's ns declaration, plus usage
examples (similar to how many Perl 5 modules have a useful SYNOPSIS
section near the top)

Another important reason for having a good default README.md template
specifically for libs is that, at some point, I'm guessing that
clojars.org will extract and render them as html, and it will be nice
if there's some conventions already in place.

---John

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


Re: Leiningen 2.0.0-preview4

2012-05-12 Thread Phil Hagelberg
On Sat, May 12, 2012 at 4:07 PM, John Gabriele jmg3...@gmail.com wrote:
  * an app would have `:main foo.core` in the project.clj
  * an app would have the `-main` function in core.clj
  * an app would have a :gen-class in its ns declaration in core.clj

Sure, that makes sense. Feel free to open an issue and/or pull request
on the lein-newnew project for it.

-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


Re: Leiningen 2.0.0-preview4

2012-05-12 Thread John Gabriele
On May 12, 7:07 pm, John Gabriele jmg3...@gmail.com wrote:

Whoops. Typo:

 Another important reason for having a good default README.md template
 specifically for libs is that, at some point, I'm guessing that
 clojars.org will extract and render them as html, and it will be nice
 if there's some conventions already in place.

s/some conventions/some more conventions/

:)

Also, re

 Sure, that makes sense. Feel free to open an issue and/or pull request
 on the lein-newnew project for it.

Great. Will look into that later tonight.

Thanks,
---John

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


[ANN] Leiningen 2.0.0-preview4

2012-05-11 Thread Phil Hagelberg
Hello folks.

I'm happy to announce the release of the fourth preview of Leiningen 2.0.0.

The most important thing in this release is that it fixes a bug where
the dev profile would be applied when generating a pom to push to
clojars. So if you are developing libraries with preview3, it's
important to get this update. Other highlights include dynamic jar
manifests, repl bugfixes, and the ability to force offline or
update-snapshots mode with the -o and -U commands.

## 2.0.0-preview4 / 2012-05-11

* Checkout dependencies are not applied with production profile.
* Move pom.xml back to the project root.
* Add -U alias for forcing updates of snapshots.
* Support setting :update and :checksum profiles at top level of project.
* Blink matching parens in repl. (Colin Jones)
* Fix a bug where repl would interfere with project agents. (Chas Emerick)
* Show repl output that is emitted after return value. (Colin Jones)
* Make it easier for plugins to undo profile merging. (David Santiago)
* Add -o alias for activating offline profile.
* Ignore $CLASSPATH environment variable.
* Fix bug where repl task couldn't be trampolined. (Colin Jones)
* Allow jar manifest entries to be dynamically calculated.
* Support map-style :javac-opts like Leiningen 1.x used. (Michael Klishin)
* Allow group-id to be specified when creating new projects. (Michael Klishin)
* Fix a bug where :dev dependencies would be exposed in pom.
* Use Clojure 1.4.0 internally; plugins have access to new Clojure features.

If you have an earlier preview version, you can pull this in via lein
upgrade. If you only have Leiningen 1.x installed, you will have to
download preview4 by hand:

https://raw.github.com/technomancy/leiningen/preview/bin/lein

Note that this does not conflict in any way with Leiningen 1.x; you can
keep the two of them installed side-by-side. It's common to save the
above script as lein2 to differentiate between the two of them if you
have projects that don't yet work with Leiningen 2.

So far we've found the preview releases to be quite stable, so now would
be a great time to try upgrading if you've been holding off:

https://github.com/technomancy/leiningen/wiki/Upgrading

As always, please let us know if you run into any issues.

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


Re: [ANN] Leiningen 2.0.0-preview4

2012-05-11 Thread Michael Klishin
Phil Hagelberg:

 I'm happy to announce the release of the fourth preview of Leiningen 2.0.0.
 
 The most important thing in this release is that it fixes a bug where
 the dev profile would be applied when generating a pom to push to
 clojars. So if you are developing libraries with preview3, it's
 important to get this update. Other highlights include dynamic jar
 manifests, repl bugfixes, and the ability to force offline or
 update-snapshots mode with the -o and -U commands.

I am happy to report that travis-ci.org has been upgraded to lein2-preview4. If 
you are just migrating to Lein 2,
this guide explains how to instruct Travis CI to use it:

http://about.travis-ci.org/docs/user/languages/clojure/

MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin

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