Commit Graph

11353 Commits

Author SHA1 Message Date
Eugene Yokota d796084ff4 Filter out color in CosoleAppender only
Fixes sbt/sbt#3348
Ref #101

The new logger, based on log4j separates the concern of the log producer (Logger) and the handlers that takes actions (Appender, e.g for displaying on Console). As such filtering of color should be performed only in the ConsoleAppender.
2017-07-24 23:54:25 -04:00
Eugene Yokota f6370063f4 Deprecate ansiCodesSupported from the logger 2017-07-24 23:20:05 -04:00
eugene yokota df18d79987 Merge pull request #101 from liff/issue/3336
Delegate ansiCodesSupported to ConsoleAppender
2017-07-24 22:57:06 -04:00
Eugene Yokota f96c8b9668 InteractionService#terminalWidth
Adds `def terminalWidth: Int` to InteractionService to wrap JLine 2 (or 3 in the future).

Fixes #3352
2017-07-24 22:44:18 -04:00
Eugene Yokota a68372fd52 Fix new command
This was caused by bad porting of lm API usage.

Fixes #3355
2017-07-24 22:23:37 -04:00
eugene yokota ac7b1498a9 Merge pull request #3363 from sbt/fport/3329
[fport] Make scripted support sbt 1.0.0-RC1 or later
2017-07-24 22:20:36 -04:00
Dale Wijnand 696aacb31f Make scripted support sbt 1.0.0-RC1 or later
Fixes #3325
2017-07-24 21:18:13 -04:00
eugene yokota 26954994e2 Merge pull request #3362 from sbt/fport/3356
[fport] Override current project's scalaVersion on ^^
2017-07-24 20:16:40 -04:00
Eugene Yokota 2c4e78f414 Override current project's scalaVersion on ^^
Both the default settings and ^^ together sets the correct scalaVersion based on `sbtVersion in pluginCrossBuild`, but frequently people set up `scalaVersion` on sbt plugin's subproject, which disables the feature.
This change appends the scalaVersionSetting on ^^ so scalaVersion gets switched to 2.12.2 on ^^ 1.0.0-RC2 etc.

Fixes #3205
2017-07-24 18:45:37 -04:00
eugene yokota 82a8ca87e1 Merge pull request #3358 from sbt/wip/linereader
Keep ConsoleChannel open
2017-07-24 13:47:07 -04:00
Dale Wijnand 2bb2cfd10e Merge pull request #103 from dwijnand/mima
Add, configure & enable MiMa
2017-07-24 15:56:10 +01:00
Dale Wijnand 80e8abc22d Merge pull request #169 from dragos/patch-1
Read last line of config files without EOL
2017-07-24 15:29:34 +01:00
Dale Wijnand d6803f0645 Merge pull request #3351 from Duhemm/wip/fix-3299
Allow `.value` on SettingKey inside ifs & lambdas
2017-07-24 07:42:58 +01:00
Eugene Yokota a58b1ebce0 Keep ConsoleChannel open
Fixes #3282

For now, don't try to shutdown ConsoleChannel while the network is processing the command in the background.
2017-07-22 03:35:42 -04:00
Eugene Yokota 7b2b7d696b Don't wrap InputStream for Windows
Ref #3282

We used to wrap InputStream so it will inject Thread.sleep, which then allows the thread to be cancelled, emulating a non-blocking readLine. This trick doesn't seem to work for Windows.
For non-Cygwin, actually just removing the wrapping does the job, but I couldn't get it to work for Cygwin.

To test, run some command via network, and then type `show name` into the terminal. On Cygwin, it will not respond.
2017-07-22 03:34:10 -04:00
eugene yokota acb0b696ce Merge pull request #3354 from xuwei-k/lightbend
s/Typesafe subscriptions/Lightbend subscriptions
2017-07-21 19:07:49 -04:00
xuwei-k ba37d568f8 s/Typesafe subscriptions/Lightbend subscriptions 2017-07-22 07:14:42 +09:00
Martin Duhem 9dfe1a8406
Allow `.value` on SettingKey inside ifs & lambdas
Calling `.value` on a SettingKey doesn't trigger any execution and
doesn't have any side effect, so we can safely allow calls to `.value`
inside conditionals and lambdas.

Fixes #3299
2017-07-21 16:26:45 +02:00
Dale Wijnand da9084b2d8
Add, configure & enable MiMa 2017-07-21 09:26:35 +01:00
eugene yokota 4f42e2aa50 Merge pull request #3346 from dwijnand/imports
Add missing aliases in Imports
2017-07-20 11:37:04 -04:00
eugene yokota 1b68c909c6 Merge pull request #3345 from dwijnand/rm-Seq2Vector
Un-implicit & deprecated Seq2Vector
2017-07-20 11:18:58 -04:00
Dale Wijnand f821ddb6de
Add missing aliases in Imports
Fixes #3341
2017-07-20 11:37:05 +01:00
Dale Wijnand be1b4897e9
Un-implicit & deprecated Seq2Vector 2017-07-20 11:29:55 +01:00
Dale Wijnand a068736836 Merge pull request #3342 from sbt/wip/sbt1
sbt 1.0.0-RC2
2017-07-20 10:36:48 +01:00
Eugene Yokota b2220fe9d4
sbt 1.0.0-RC2 2017-07-20 06:56:37 +01:00
Dale Wijnand 7d91a25608 Merge pull request #102 from eed3si9n/wip/sbt1
sbt 1.0.0-RC2
2017-07-20 06:44:00 +01:00
Eugene Yokota 855638243a sbt 1.0.0-RC2 2017-07-19 21:36:11 -04:00
Olli Helenius a38d3d6c69 Delegate ansiCodesSupported to ConsoleAppender
Fixes sbt/sbt#3336.
2017-07-18 19:57:57 +03:00
Martin Duhem d267ec487a Show `actual` as potential option of `inspect` 2017-07-18 12:02:02 +02:00
Dale Wijnand 7b02a40b5e Merge pull request #100 from Duhemm/re-fix-consoleappender
Re-fix ConsoleAppender
2017-07-17 16:09:48 +01:00
Martin Duhem ddcc909195 Re-fix ConsoleAppender
It turns out that calling `print` on `ConsoleOut` doesn't flush the
output. Remove `writeLine` and let `write` directly use `println`.
2017-07-17 14:36:03 +02:00
Dale Wijnand 81277cbf62 Merge pull request #99 from dwijnand/prereset
Add a RESET at the front of the appendLog line
2017-07-17 10:55:39 +01:00
Dale Wijnand 2d7ec47b13 Merge pull request #3324 from sbt/wip/contraband
Bump Contraband to latest
2017-07-17 10:51:29 +01:00
Dale Wijnand c07e4c740c Merge pull request #98 from Duhemm/fix-consoleappender
Fix logger printing too many newlines
2017-07-17 10:45:42 +01:00
Dale Wijnand e744985b6b
Add a RESET at the front of the appendLog line 2017-07-17 10:42:39 +01:00
Martin Duhem 28ab7ac79d
Fix logger printing too many newlines 2017-07-17 10:05:58 +02:00
Eugene Yokota 8d159b87a2 Fix test 2017-07-17 02:14:17 -04:00
Eugene Yokota 00a9dd14a4 Bump Contraband to latest 2017-07-17 01:05:30 -04:00
eugene yokota 53b9ce2d71 Merge pull request #3323 from sbt/wip/notes
notes
2017-07-17 01:01:25 -04:00
Eugene Yokota 79394da920 notes 2017-07-17 01:00:57 -04:00
eugene yokota e6a70f9864 Merge pull request #3322 from sbt/wip/integration
Bump all modules to latest
2017-07-16 23:45:46 -04:00
Eugene Yokota c9fae43595 bump to Util 1.0.0-M28 and Zinc 1.0.0-X20 2017-07-16 22:16:33 -04:00
Eugene Yokota fda31ec5e7 Fixes dependency-management / extra 2017-07-16 20:05:19 -04:00
eugene yokota a09cd424f1 Merge pull request #97 from eed3si9n/wip/hash
Tracked fixes
2017-07-16 19:44:28 -04:00
Eugene Yokota f653800cb3 Add back outputChanged
Fixes #79
2017-07-16 19:28:02 -04:00
Eugene Yokota 24d97aa104 Fixes Tracked.inputChanged
Tracked.inputChanged stores and reads hash correctly.
Fixes #96
2017-07-16 18:48:28 -04:00
Eugene Yokota 9ccfbe462c Minor change to tests/serial 2017-07-16 17:53:33 -04:00
Eugene Yokota 2f8d7c2f7a Fixes tests/scala-instance-classloader 2017-07-16 17:50:23 -04:00
Eugene Yokota c72ca77c29 Fixes source-dependencies/trait-member-modified 2017-07-16 17:41:46 -04:00
Eugene Yokota c279995cdd Fixes source-dependencies / transitive-memberRef 2017-07-16 17:38:58 -04:00