Mark Harrah
c5120636e4
Continuation of previous commit's workaround for #937 : close test streams early
2013-11-04 13:10:06 -05:00
Mark Harrah
ca7e78d03d
Explicitly, optimistically close export streams early: workaround for #937
...
This is a temporary workaround: it assumes nothing else uses these streams later.
This condition is ok for 'export' and test streams, since these are unlikely to
reuse these streams. However, the proper fix is for the TaskStreams methods
to be smarter- they could open in append mode if the stream was closed. The
streams associated with a task could be optimistically closed after it finishes executing.
(Any task can write to another task's streams, which is why it is an optimization only.)
2013-11-04 11:45:28 -05:00
Mark Harrah
a92b883e23
update to ScalaCheck 1.11.0
2013-11-04 11:28:40 -05:00
James Roper
191737d35b
Log socket accept errors when forking tests
...
If an exception is thrown when accepting a connection from a forked test
agent, currently I'm seeing that all that happens is SBT hangs with no
output. Thread dumps show that the main process is waiting for the
agent to return, while the agent is waiting for the server to send it
something.
This change logs the exception, so that at least the error can be
googled. It also cleans up the server socket.
2013-11-04 09:39:30 -05:00
James Roper
b337f3d9ac
Flush ObjectOutputStreams after construction
...
This protects against deadlocks between the writing and reading end,
since the ObjectOutputStream constructor writes a header, but does not
flush, and the ObjectInputStream constructor reads the header, and
blocks until it's read.
2013-11-01 13:26:07 -04:00
Benjy
655e2e5c91
Fix serialization in Sync.
...
The serialized structures there aren't part of an Analysis,
so they aren't interned.
TODO: Refactor InternedAnalysisFormats so that this is more
straightforward and less error-prone. This commit is
a first-pass fix of the broken test.
2013-10-28 15:00:17 -04:00
Mark Harrah
0a2bb3a958
Merge remote-tracking branch 'benjy/interned_files' into 0.13
2013-10-24 16:55:16 -04:00
Mark Harrah
c2b319e977
error,warn,info,debug commands to set log level, useful in conjunction with early combinator --. Fixes #806 .
2013-10-24 16:34:16 -04:00
Mark Harrah
f461b94e73
Fix API comment for State.{+,++}
2013-10-24 16:34:16 -04:00
Mark Harrah
ecd3b8843d
clean up show command description to use string interpolation
2013-10-24 16:34:16 -04:00
Mark Harrah
e93c4450a1
early commands: anything prefixed with -- gets moved to the front of the command sequence on startup
2013-10-24 16:34:16 -04:00
Mark Harrah
86ae3c8c59
Deprecate -, --, and --- in favor of onFailure, sbtClearOnFailure, and resumeFromFailure.
2013-10-24 16:34:16 -04:00
Mark Harrah
4e7f30c893
provide Logger via Keys.sLog for use by settings during project initialization. Ref #806 .
2013-10-24 16:34:16 -04:00
Mark Harrah
eeb1ce8884
use global logging levels as the default for task logging levels
2013-10-24 16:34:16 -04:00
Mark Harrah
55832b3a03
set global logging levels from project settings if not already explicitly set
2013-10-24 16:34:16 -04:00
Mark Harrah
5498275ebd
Track whether global logging levels were set explicitly by the user or not.
2013-10-24 16:34:16 -04:00
Mark Harrah
fb1437cf36
Transfer logging,trace levels from old to new global loggers.
2013-10-24 16:34:16 -04:00
Benjy
c66eefcec9
Switch to using the interned serialization format.
2013-10-23 10:41:13 -04:00
Mark Harrah
11b0c7b3ff
Process settings once in SettingGraph for better performance.
...
Running 'inspect tree sbt/update' on sbt goes from 27 s to <1 s.
Review by @eed3si9n.
2013-10-18 19:56:43 -04:00
Mark Harrah
9dcb8727d8
New method `toTask` on `Initialize[InputTask[T]]` to apply the full input and get a plain task out.
2013-10-18 16:49:34 -04:00
Mark Harrah
136bb00698
Use scalacOptions from project/ for the build definition.
2013-10-14 19:59:28 -04:00
Mark Harrah
7d49bcdbf2
Add missed s interpolator, as pointed out by @xuwei-k
2013-10-08 13:38:33 -04:00
Mark Harrah
277813dd0a
Improve forked test debugging by listing tests run by sbt. Fixes #868 .
...
This helps diagnosing issues on the sbt/framework border by verifying
that sbt is properly collecting and invoking tests.
2013-10-03 10:57:00 -04:00
Mark Harrah
4958c98e52
Remove redundancy in excludeFilter default implementation.
2013-10-02 19:39:17 -04:00
Mark Harrah
e62b5d7dbd
Enable trapExit by default.
2013-10-02 09:13:50 -04:00
Mark Harrah
60426facba
TrapExit support for multiple, concurrent managed applications. Fixes #831 .
2013-10-02 09:13:45 -04:00
James Roper
743ce99315
String upper/lower case no longer locale dependent
...
Fixed many instances of the Turkish i bug.
Spare a thought for the poor Turks!
2013-09-24 08:14:15 -04:00
Havoc Pennington
6ba517c19b
Attempt to improve key collision error message
2013-09-13 10:13:18 -04:00
William Benton
2a3462ac12
Additional options for Ivy resolvers.
...
Specify an Ivy resolver with ", descriptorOptional" to make Ivy
descriptor files optional for that repository or with
", skipConsistencyCheck" to disable Ivy consistency checks for
that repository.
2013-08-26 14:06:21 -04:00
Eugene Yokota
cce87fcf9a
fixes scaladoc cache not detecting -doc-root-content. #837
...
adds fileInputOptions key to track options that may invalidate the
cache for doc task.
2013-08-17 01:31:53 -04:00
Mark Harrah
9d1d18cd71
remove duplicate relativize implementation from Path
2013-08-16 14:22:14 -04:00
Mark Harrah
f5c4c89d17
some additional API docs for Defaults.scala
2013-08-16 14:21:44 -04:00
Johannes Rudolph
701206b54d
prevent another StringIndexOutOfBoundsException in Graph.toAscii
2013-07-31 15:31:04 +02:00
James Roper
1eaf548bcd
Added shutdown hook for restoring the terminal
2013-07-30 19:02:10 +10:00
Eugene Yokota
fd03ad67f2
refix #795
...
`math.min` should have been `math.max` here.
It's currently chopping off the output of inspect tree.
2013-07-29 16:33:53 -04:00
Mark Harrah
4ab037c5cd
remove Process from base imports in .sbt files and eval
...
The implicits are already in the sbt package object.
2013-07-29 14:14:04 -04:00
Mark Harrah
7dadbf1fc6
Drop unneeded import that triggers SI-7690.
2013-07-23 15:20:45 -04:00
Mark Harrah
4123769214
inline implementation of Symbol.isTopLevelModule, which no longer exists in 2.11
2013-07-23 11:35:34 -04:00
Mark Harrah
61509408c9
Deprecate seq. The implicits Seq[Setting[_]] <-> SettingsDefinition handle the typical plugin/build.sbt case.
2013-07-19 20:50:10 -04:00
Mark Harrah
2e0257f440
Alias from Project->Def for SettingsDefinition
2013-07-19 20:50:10 -04:00
Mark Harrah
0a77a47f41
Revert "Don't import the Global.Range in 2.11, which shadows the collection Range"
...
This reverts commit 5d7d9c4cef . Can't do it this way
since Global.Range doesn't exist in 2.10.
2013-07-19 07:20:12 -04:00
Mark Harrah
5d7d9c4cef
Don't import the Global.Range in 2.11, which shadows the collection Range
2013-07-18 22:41:52 -04:00
Mark Harrah
a4d0a0cb5a
Provide implicits in consoleProject to add .eval to task and setting keys. Fixes #815 .
2013-07-17 14:58:53 -04:00
Mark Harrah
c0e06a14fe
Apply setup and cleanup hooks to forked tests.
...
The actual class loader for test classes cannot be provided because it
is in another jvm.
2013-07-16 13:55:10 -04:00
Mark Harrah
c2df1e8d68
Deduplicate options processing for forked/non-forked tests.
...
This in particular fixes testOnly/testQuick when forking.
2013-07-16 13:55:10 -04:00
Mark Harrah
45677de789
test arguments no longer need to be passed throughout- they are now only used in Runner construction
2013-07-11 21:13:06 -04:00
Mark Harrah
4795799a15
Drop defaultConfigurationMapping, which wasn't used. Fixes #421 .
2013-07-11 18:49:30 -04:00
Mark Harrah
32bdab68bd
Fix remaining Global defaults to be added only once.
2013-07-11 18:49:30 -04:00
Mark Harrah
0507a2a1a9
Deprecate implicit RootProject/LocalProject calls on URI/File/String
...
Builds are using explicit calls anyway, so reduce the implicits.
2013-07-10 18:15:30 -04:00
Mark Harrah
001bd6cb9f
Provide a better error message when an older launcher is used with 0.13 and JLine classes are incompatible.
2013-07-08 18:42:00 -04:00