Commit Graph

1230 Commits

Author SHA1 Message Date
eugene yokota 098796cdff
Merge pull request #232 from diesalbla/recycle_string_builder_storage
ConsoleAppender: reuse/recycle StringBuilder storage
2019-10-22 17:57:00 -04:00
Diego E. Alonso-Blas 3657910063 ConsoleAppender: reuse/recycle StringBuilder storage.
A StringBuilder is a mutable data structure to create a String.
When the String is created, the new String does not share any
storage with the StringBuilder. Thus, we can keep a same
StringBuilder, and reuse its internal storage between different
iterations.
2019-10-22 23:30:09 +02:00
eugene yokota f5358db783
Merge pull request #229 from eed3si9n/wip/nohouse
in-source sbt-houserules
2019-10-19 19:28:13 -04:00
Eugene Yokota 6c9120ea62 Bump Scala versions 2019-10-19 19:21:03 -04:00
Eugene Yokota 1e3e726d0b sbt 1.3.3 2019-10-19 19:14:29 -04:00
Eugene Yokota 8c2aef75e4 in-source sbt-houserules 2019-10-19 19:14:16 -04:00
Ethan Atkins 166511c992
Merge pull request #227 from eatkins/delete-line-count
Don't include DeleteLine in progress length
2019-10-07 15:13:03 -07:00
Ethan Atkins 43f25520a0 Don't include DeleteLine in progress length
I incorrectly included the DeleteLine in the progress line length and
this could cause certain progress lines to be incorrectly reported as
multi line when they actually fit on a single terminal line.
2019-10-07 09:30:41 -07:00
eugene yokota 0c9ac98b08
Merge pull request #225 from eatkins/divide-by-zero
Divide by zero
2019-09-24 20:54:20 -04:00
Ethan Atkins 9c2dd05b6a Avoid possible divide by zero
On the off chance that in some configurations the terminal width is set
to zero, avoid an exception by returning 0 for terminal lines. It is
likely that supershell will not work well if terminal width is zero, but
that's better than a potential crash (I think the crash would be in the
progress background thread, so I'm not sure how bad it would be, but
still its good to avoid).
2019-09-24 16:35:03 -07:00
Ethan Atkins 5cfab4c9a9 Cleanup implementation of progress report
It was a bit cleaner to consolidate `extra` and
(previousLines|info).length into prevLength and currentLength.
2019-09-24 16:33:42 -07:00
Ethan Atkins 0b18ccebbd
Merge pull request #223 from eatkins/terminal-width
Take terminal width into account in supershell
2019-09-24 12:03:36 -07:00
Ethan Atkins 7597cdb19b Take terminal width into account in supershell
Sometimes if the progress lines are wider than the terminal width,
the supershell blank zone can expand indefinitely because be do not move
the cursor far enough up to properly re-fill the blank zone.
2019-09-24 10:59:53 -07:00
eugene yokota 6fc614bb46
Merge pull request #222 from eatkins/sbt-bump
Bump sbt version to 1.3.0
2019-09-18 22:14:49 -04:00
eugene yokota 3f20cc1583
Merge pull request #221 from eatkins/lazy-success-event-tag
Load SuccessEventTag lazily
2019-09-18 22:14:28 -04:00
Ethan Atkins 9c445896cf Bump sbt version to 1.3.0 2019-09-18 15:34:30 -07:00
Ethan Atkins b3165b5c8c Load SuccessEventTag lazily
It takes about a second to load scala.reflect.runtime.universe. If we
lazy load here, we can load scala.relect.runtime.universe in the
background to speed up the sbt start up time. See
0ebb7a5662.
2019-09-18 15:33:42 -07:00
eugene yokota a164c0571d
Merge pull request #220 from eed3si9n/wip/merge
merge 1.3.x branch
2019-09-17 17:12:42 -04:00
eugene yokota 2086d3be5a
Merge pull request #218 from eatkins/rework-supershell-interlacing
Fix supershell position bug
2019-09-03 17:12:05 -04:00
eugene yokota aad5aa39e0
Merge pull request #219 from eed3si9n/wip/bumpio
IO 1.3.0
2019-09-03 16:44:28 -04:00
Ethan Atkins f20b275045 Fix supershell position bug
The previous implementation of supershell log line interlacing with
regular line interlacing relied on state in a global object. A somewhat
better approach is for each appender to hold a reference to a state
object. Every time tasks run, new appenders are created, so the state
should always reflect the current progress state.
2019-09-03 13:07:51 -07:00
Eugene Yokota 1aef82aedb IO 1.3.0 2019-09-03 16:00:50 -04:00
eugene yokota c0146ed0ff
Merge pull request #216 from eatkins/supershell-flickering
Interlace log lines with task progress
2019-09-02 17:08:22 -04:00
Ethan Atkins 635316902d Allow supershell to work in no color mode
Supershell actually works quite well in no color mode. On the sbt side,
we still want to disable supershell automatically if the output is not a
terminal or no color is set, but this commit allows the user to force
supershell through -Dsbt.supershell or the useSuperShell setting even
when no color is set.
2019-09-02 11:10:42 -07:00
Ethan Atkins a5666e97b6 Manage progress padding
With this commit, I improved the padding management so that padding is
now added above the progress report. Whenever a line is logged at the
info or greater level, we can reduce the padding level by one since that
line has effectively filled in the padding.
2019-09-01 22:26:57 -07:00
Ethan Atkins d9fe5540f5 Interlace log lines with task progress
With the current supershell implementation, the progress display
flickers when there is heavy console logging during task evaluation.
This is because the console appender clears out the task progress and it
isn't restored until the next periodic super shell report (which
runs every 100ms by default). To remove the flickering, I reworked the
implementation to interlace the log lines with progress reports. In
order to ensure that the log lines remained contiguous, I had to apply
padding at the bottom of the supershell region whenever the new report
contained fewer lines than the old report. The report shifts down as new
log lines are appended. This isn't optimal, but I think removing
the flickering while preserving contiguous log lines is worth it.
2019-09-01 21:06:48 -07:00
eugene yokota f7898a47de
Merge pull request #215 from avakhrenev/array-equals
Fix FileHash equality
2019-08-29 12:20:56 -04:00
Alexey Vakhrenev c9e07b6010 fix FileHash equality 2019-08-29 18:03:00 +03:00
eugene yokota 623e133551
Merge pull request #214 from xuwei-k/update
Update dependencies
2019-08-27 09:14:22 -04:00
xuwei-k 9611f737ec Update dependencies 2019-08-27 15:56:59 +09:00
eugene yokota a0bb867dd6
Merge pull request #212 from eatkins/binary-compatibility
Unbreak binary compatibility
2019-08-21 14:07:11 -04:00
Ethan Atkins 7f112052bf Unbreak binary compatibility
We discovered in the community build that 1.3.0-RC4 breaks the
lucidchart scalafmt plugins. We can unbreak binary compatibility by
adding alternative classes.
2019-08-21 10:20:53 -07:00
eugene yokota ce35950918
Merge pull request #213 from eatkins/sbt-dogfood
Bump sbt version to 1.3.0-RC4
2019-08-21 13:01:33 -04:00
Ethan Atkins caecc7e6ae Bump sbt version to 1.3.0-RC4 2019-08-21 00:03:57 -07:00
eugene yokota f48340f708
Merge pull request #211 from eed3si9n/wip/stacktrace
reimplement stacktrace suppression
2019-08-20 12:46:37 -04:00
Eugene Yokota 39fdf70c21 reimplement stacktrace suppression
Ref https://github.com/sbt/sbt/issues/4964
2019-08-20 12:35:13 -04:00
eugene yokota d4824a53ae
Merge pull request #210 from eed3si9n/wip/build
publish for 2.13
2019-08-19 01:01:59 -04:00
Eugene Yokota 5fcb100d6f publish for 2.13
Fixes #201
https://repo1.maven.org/maven2/org/scala-sbt/util-cache_2.13/
2019-08-18 23:20:43 -04:00
eugene yokota ca776cf3f8
Merge pull request #208 from jroper/file-info-hash-byte-array
Use byte arrays instead of lists of bytes in FileInfo
2019-08-13 08:03:28 -04:00
James Roper 50b2ea6f83 Use byte arrays instead of lists of bytes in FileInfo
Fixes #206
2019-08-12 15:16:48 +10:00
eugene yokota 87d04e2b9f
Merge pull request #204 from eed3si9n/wip/bump
Scala 2.13.0
2019-07-14 12:57:14 -04:00
Eugene Yokota 7de45416fa Scala 2.13.0 2019-07-14 12:47:43 -04:00
Dale Wijnand bb672c8be7
use openjdk instead of oraclejdk. fix travis matrix setting (#203)
use openjdk instead of oraclejdk. fix travis matrix setting
2019-07-12 08:47:49 +01:00
xuwei-k 9140fe3d2a use openjdk instead of oraclejdk. fix travis matrix setting 2019-07-12 15:02:30 +09:00
kenji yoshida 5db20c2007
Update dependencies (#202) 2019-06-25 11:17:26 +09:00
eugene yokota 19cf0cd691
Merge pull request #200 from eed3si9n/wip/bump
IO 1.3.0-M10, and nightly version
2019-05-11 19:29:24 -04:00
Eugene Yokota dec2ba2d07 IO 1.3.0-M10, and nightly version
Fixes #199
2019-05-11 15:56:28 -04:00
eugene yokota 6e9a8241d4
Merge pull request #198 from eed3si9n/wip/plugins2
Bump sbt-whitesource
2019-05-04 02:31:29 -04:00
Eugene Yokota 96c91bb2a1 Drop 2.10 cross building 2019-05-04 02:23:55 -04:00
Eugene Yokota 74fb5cde9a Bump sbt-whitesource 2019-05-04 01:17:44 -04:00