Commit graph

2526 commits

Author SHA1 Message Date
Phil Hagelberg
2e852fb563 Doc rewording for checkout deps. 2013-01-18 17:18:04 -08:00
Phil Hagelberg
b4932b88ea Merge pull request #937 from hyPiRion/gracefully-stop-reading-input-in-sub-process
Gracefully stop reading input in sub-process. Fixes #934.
2013-01-17 17:29:32 -08:00
Jean Niklas L'orange
4f2bc328d7 Gracefully stop reading input in sub-process. Fixes #934.
This commit handles three major bugs with the current way of redirecting input
from Leiningen to a sub-process:

- The redirection is never stopped. This means that typing on the keyboard after
  a sub-process has finished will crash the thread redirecting data from *in* to
  the sub-process' input stream, as it is closed.

- The redirection is buffered. This means that data intended to a subsequent
  sub-process may be sent to this sub-process instead.

- The redirection blocks instead of busy waits. For the output streams, this is
  perfectly fine and the recommended approach to avoid wasting cycles. However,
  this has some issues when done to an input stream: If the sub-process finishes
  while the thread block waiting for a character, we will be unable to stop the
  thread before a character has been read. The consequence is that a character
  originally intended to the subsequent sub-process will be given to the
  previous process.

These issues are solved by reading one byte at a time, busy wait on data and
gracefully exit when the sub-process has ended (through a mutable
variable/atom).
2013-01-18 01:02:15 +01:00
Phil Hagelberg
6e42ceea19 Clarify wording of checkout dependencies in tutorial. 2013-01-17 11:47:25 -08:00
Jean Niklas L'orange
9e9d94581c Add pom.xml.asc and .lein-repl-history to lein new gitignores. 2013-01-17 16:18:12 +01:00
Colin Jones
478469d6be Bump REPLy for parsing things like "\ " 2013-01-17 08:59:34 -06:00
Michael Klishin
8193e2bf60 Merge pull request #936 from metajack/fix-release-for-lein-pkg
Add bin/lein-pkg to the list of files that get version substitutions.
2013-01-17 04:28:23 -08:00
Jean Niklas L'orange
1f38b792f8 Merge pull request #935 from brandonbloom/newlines-at-eof
Add newlines at end of template files
2013-01-17 00:08:20 -08:00
Jack Moffitt
eb5ba65f90 Add bin/lein-pkg to the list of files that get version substitutions.
Currently lein-pkg is forgotten about, which means it is always pointing to
the 2.0.0-SNAPSHOT version. This means packagers much edit this file
themselves.
2013-01-16 22:04:47 -07:00
Brandon Bloom
9ecf3e4c53 Add newlines at end of template files 2013-01-16 19:44:58 -08:00
Colin Jones
acd2df66ba Bump REPLy & nREPL for Calendar print & regex read 2013-01-16 20:31:34 -06:00
Phil Hagelberg
f898c46f57 NEWS for RC2. 2013-01-15 09:25:23 -08:00
Phil Hagelberg
221d62a279 Merge pull request #932 from mgrubb/warn-on-user-in-project
Emit warning when user profile is in project files
2013-01-14 10:42:43 -08:00
Jean Niklas L'orange
1ea3c4c677 Treat :user in profile.clj as project map when outside of project. Fixes #931.
By treating the `:user` profile in `profile.clj` as the project map when one's
outside of a project, the default repositories among with any mentioned
repositories within the `:user` profile will be fetched without any issues. Also
works fine when `profile.clj` doesn't contain any `:user` profile or no
`profile.clj` exists.
2013-01-14 11:03:11 +01:00
Michael Grubb
ec435b48a6 Emit warning when user profile is in project files
This implements issue #890.
It warns if a :user profile is found in either project.clj or
a profiles.clj in the project directory.
2013-01-13 21:26:20 -06:00
Jean Niklas L'orange
fbc1804f86 Add tests to check ^:replace/^:displace behaviour. 2013-01-13 11:10:01 +01:00
Jean Niklas L'orange
2b40a3c8ec Prioritize metadata from :replace-vals and suppress from :displace. 2013-01-13 10:54:04 +01:00
Jean Niklas L'orange
e5511fe516 Back to 2.0.0-SNAPSHOT. 2013-01-13 10:38:54 +01:00
Phil Hagelberg
99f0ed7069 Release 2.0.0-RC2 2013-01-12 17:03:18 -08:00
Phil Hagelberg
b75658cff9 Be less specific in hooke-injection. 2013-01-12 14:44:50 -08:00
Phil Hagelberg
ccab537e56 Use default repos when non-nil project contains none. 2013-01-12 14:06:31 -08:00
Phil Hagelberg
e7b52a076d Oops, got the nesting wrong on that last one. 2013-01-12 13:20:54 -08:00
Phil Hagelberg
06fecc812a Use default repositories for plugins when outside project.
Fixes #928.
2013-01-12 12:56:39 -08:00
Colin Jones
23c2e263d0 Bump reply / nREPL versions for nREPL 0.2.0 final 2013-01-12 12:03:36 -06:00
Jean Niklas L'orange
74e30d7e45 Merge pull request #927 from AtKaaZ/master
`main/get-os` should be `eval/get-os` in `new/templates.clj`
2013-01-12 05:30:46 -08:00
AtKaaZ
2ea4e4486c "main/get-os" is supposed to be "eval/get-os"
allows compiling lein from master now
2013-01-12 13:03:18 +01:00
Phil Hagelberg
33bab94f7f Merge pull request #926 from redinger/normalize-profiles
Normalize profiles before merging them
2013-01-11 19:33:34 -08:00
Christopher Redinger
e053fe1930 Normalize profiles before merging them 2013-01-11 21:49:03 -05:00
Colin Jones
e7177c0b89 Bump reply / nREPL versions
fixes #917
fixes #921
2013-01-11 14:44:14 -06:00
Phil Hagelberg
ab080ecd30 quadruple bacon deluxe backslash for Windows. Fixes #920. 2013-01-11 11:21:29 -08:00
Phil Hagelberg
b6a4caad45 Oops; accidentally merged lein-newnew 0.3.6 instead of latest. 2013-01-11 11:14:33 -08:00
Phil Hagelberg
829046af7f Fix upgrade command. 2013-01-11 11:06:09 -08:00
Phil Hagelberg
03151e1af9 Docs for new. 2013-01-11 11:04:26 -08:00
Phil Hagelberg
c300908789 newnew's not newnew anymore; it's just new. 2013-01-11 10:55:55 -08:00
Phil Hagelberg
eb15a82e12 Back to 2.0.0-SNAPSHOT. 2013-01-10 16:59:36 -08:00
Phil Hagelberg
1e309c1a52 Release 2.0.0-RC1 2013-01-10 16:45:09 -08:00
Phil Hagelberg
54806fa5bc Fix newnew test 2013-01-10 16:45:09 -08:00
Nelson Morris
b7c54adc4e Print checksum exceptions 2013-01-10 17:03:20 -06:00
Phil Hagelberg
5f6fd4f306 Move resolution failure messages to catch block in get-dependencies. 2013-01-10 13:31:46 -08:00
Phil Hagelberg
871b1c0b61 Move downloads to S3 bucket. Fixes #885. 2013-01-10 11:57:24 -08:00
Phil Hagelberg
96adcdccc5 Fix tests re: central snapshots. 2013-01-10 11:40:15 -08:00
Phil Hagelberg
567a4f87bc Bump to latest lein-newnew. 2013-01-10 11:40:02 -08:00
Phil Hagelberg
15c5eb9287 Don't need to explicitly include clojars classic in project.clj. 2013-01-10 11:35:35 -08:00
Phil Hagelberg
adab79df77 Todos and news. 2013-01-10 11:35:18 -08:00
Phil Hagelberg
824c3dc511 Don't refer folks to the Releases repository docs yet. 2013-01-10 11:08:56 -08:00
Phil Hagelberg
c70fca859f Merge pull request #909 from hyPiRion/normalize-data-in-project-map
Normalize data in project map
2013-01-10 11:02:53 -08:00
Phil Hagelberg
fd2a8bece9 Avoid NPE in trampoline's win-batch? detection. Fixes #896. 2013-01-10 10:42:56 -08:00
Phil Hagelberg
3d1aac4e77 Merge pull request #914 from revelytix/test-report-hook
Hooked clojure.test report function should pass invocation through to original fn
2013-01-10 10:13:35 -08:00
Ryan Senior
f4c2b97bc6 changed leiningen/test to allow the call into the clojure.test report to
pass through the hook to  the original multimethod
2013-01-10 11:07:01 -06:00
Phil Hagelberg
6f13cd4d21 Merge pull request #913 from mybuddymichael/change-tutorial-to-use-find
Use `find .` instead of `tree` in the tutorial
2013-01-09 22:33:50 -08:00