eugene yokota
94cb6bfbb7
Merge pull request #175 from smarter/followup-range
...
Follow-up to the fields added in #173 , and add Problem#rendered
2018-08-29 01:43:09 -04:00
eugene yokota
eb6cdf77d9
Merge pull request #174 from eed3si9n/wip/format
...
Formatting
2018-08-29 01:41:59 -04:00
Guillaume Martres
15522a0cbe
Add Problem#rendered to customize how problems are shown
...
Dotty has its own logic for displaying problems with the proper file
path, position, and caret, but if we store this information in
Problem#message we end up with duplicated information in the output
since Zinc will prepend/append similar things (see
sbt.internal.inc.ProblemStringFormats). So far, we worked around this in
Dotty by using an empty position in the sbt bridge reporter, but this
means that crucial semantic information that could be used by a Build
Server Protocol implementation and other tools is lost. This commit
allows us to avoid by adding an optional `rendered` field to `Problem`:
when this field is set, its value controls what the user sees, otherwise
we fallback to the default behavior (the logic to do this will be added to
Zinc after this PR is merged and a new release of sbt-util is made).
2018-08-28 03:58:15 +09:00
Guillaume Martres
e905b44a33
Follow-up to the fields added in #173
...
It turns out that there is more boilerplate to fill that I missed.
Also add deprecation notices.
2018-08-28 02:04:10 +09:00
Guillaume Martres
a90675635f
1.2.2-SNAPSHOT
2018-08-28 01:27:56 +09:00
Eugene Yokota
494f384c49
Formatting
2018-08-16 16:36:41 -04:00
eugene yokota
05cecc378c
Merge pull request #173 from smarter/position-range
...
xsbti.Position: add startOffset and endOffset
2018-08-16 16:25:11 -04:00
Guillaume Martres
5e3a102606
xsbti.Position: Also add {start,end}{Line,Column}
...
Positions in the Language Server Protocol and Build Server Protocol are
line/column-based instead of offset-based, so this is more convenient.
Computing the line/column from the offset is possible but requires
reading the source file.
2018-08-14 02:04:55 +09:00
Guillaume Martres
78834527df
xsbti.Position: add startOffset and endOffset
...
A position now has a start, an end, and a point (the existing `offset`),
just like it does in the Scala compiler. This information is especially
useful for displaying squiggly lines in an IDE.
This commit and the next one are required for https://github.com/sbt/zinc/pull/571
2018-08-14 02:04:43 +09:00
Guillaume Martres
f457696a99
Upgrade to sbt 1.2.1
2018-08-13 01:03:08 +09:00
eugene yokota
6a9c7c934e
Merge pull request #171 from eed3si9n/wip/next
...
1.2.1-SNAPSHOT
2018-08-01 00:29:23 -04:00
Eugene Yokota
81a1317e53
1.2.1-SNAPSHOT
2018-08-01 00:16:15 -04:00
eugene yokota
7e9e4879aa
Merge pull request #170 from eed3si9n/wip/bump
...
IO 1.2.0
2018-07-29 16:11:12 -04:00
Eugene Yokota
184c5bdaef
IO 1.2.0
2018-07-29 15:36:27 -04:00
eugene yokota
404ea508e0
Merge pull request #169 from Dwolla/issue-168
...
Output Caching: invoke output value function again, after executing output effect
2018-07-27 13:53:10 -04:00
Brian P. Holt
6f2b78b6a8
clean up compiler warnings in util-tracking
2018-07-27 11:35:26 -05:00
Brian P. Holt
141d9357cc
invoke output value function again, after executing output effect
...
fixes #168
2018-07-27 11:31:58 -05:00
eugene yokota
3811d2a82e
Merge pull request #167 from eed3si9n/wip/run-logging
...
Fixes the stacktrace trimming
2018-06-27 08:16:07 -04:00
Eugene Yokota
434e294f28
Fixes the stacktrace trimming
...
Ref https://github.com/sbt/sbt/issues/4121
Ref https://github.com/sbt/sbt/pull/4232
2018-06-27 06:37:36 -04:00
eugene yokota
7f52cc4bd7
Merge pull request #165 from eed3si9n/wip/houserules
...
sbt-houserules 0.3.7
2018-06-26 00:43:37 -04:00
Eugene Yokota
2b8d71ebe5
sbt-houserules 0.3.7
2018-06-14 02:01:40 -04:00
eugene yokota
b643c98f29
Merge pull request #164 from eed3si9n/wip/merge-1.1.x
...
Merge 1.1.x
2018-06-14 01:57:02 -04:00
Eugene Yokota
2b52c7dea0
Merge branch '1.1.x' into wip/merge-1.1.x
2018-06-14 01:11:49 -04:00
eugene yokota
8dbe9204d3
Merge pull request #162 from xuwei-k/adapted-args
...
fix adapted argument warning
2018-06-13 11:53:44 -04:00
xuwei-k
e97451d812
fix adapted argument warning
...
https://travis-ci.org/sbt/util/jobs/373445819#L517
```
[warn] /home/travis/build/sbt/util/util-cache/src/main/scala/sbt/util/Input.scala:19:23: No automatic adaptation here: use explicit parentheses.
[warn] signature: Using.apply[R](src: Source)(f: T => R): R
[warn] given arguments: input, IO.utf8
[warn] after adaptation: Using((input, IO.utf8): (java.io.InputStream, java.nio.charset.Charset))
[warn] Using.streamReader(input, IO.utf8) { reader =>
[warn] ^
```
2018-06-11 13:11:51 +09:00
Dale Wijnand
b412c9c929
Merge pull request #161 from xuwei-k/foldLeft
...
use foldLeft instead of /:
2018-05-01 13:26:06 +01:00
xuwei-k
5ca377cd59
use foldLeft instead of /:
...
1c56f0af6d/src/library/scala/collection/IterableOnce.scala (L465)
2018-05-01 20:20:00 +09:00
Dale Wijnand
d40517b828
Merge pull request #160 from eed3si9n/wip/bump
...
Scala 2.12.6 and other dependencies
2018-04-30 11:09:55 +01:00
Eugene Yokota
d2e59fa165
Scala 2.12.6 and other dependencies
...
sbt 1.1.4
Scala 2.12.6
ScalaCheck 1.14.0
ScalaTest 3.0.5
Contraband 0.4.0
2018-04-28 03:52:33 -04:00
eugene yokota
435a1c47f5
Merge pull request #159 from retronym/bump/houserules
...
Upgrade to latest sbt-houserules
2018-04-08 14:32:02 -04:00
Jason Zaugg
f2d3cfea3f
Upgrade to latest sbt-houserules
2018-04-08 14:37:51 +10:00
eugene yokota
a0ef0c02d9
Merge pull request #158 from dwijnand/StringTypeTag-opt-test-enforcement
...
Enforce invariant in StringTypeTag optimisation
2018-04-05 10:45:34 -04:00
Dale Wijnand
029952895b
Enforce invariant in StringTypeTag optimisation
...
Or, put differently, "Add a test for sbt/util#153".
2018-04-05 09:43:22 +01:00
Dale Wijnand
93d2b77922
Merge pull request #157 from eed3si9n/wip/merge-1.1.x
...
merge 1.1.x
2018-03-27 10:49:14 +01:00
Eugene Yokota
0c26b55882
Merge branch '1.1.x' into wip/merge-1.1.x
2018-03-26 22:46:04 -04:00
eugene yokota
a3bf5bd0ce
Merge pull request #156 from eed3si9n/wip/bumpsbt
...
bump to 1.1.4-SNAPSHOT
2018-03-26 22:44:23 -04:00
Eugene Yokota
4791b38adf
bump to 1.1.4-SNAPSHOT
2018-03-26 21:19:59 -04:00
Eugene Yokota
770977a0bb
sbt 1.1.2
2018-03-26 21:13:51 -04:00
eugene yokota
226a543f92
Merge pull request #152 from retronym/topic/format
...
Performance optimizations around logging
2018-03-01 01:19:34 -05:00
eugene yokota
85a30fac4a
Merge pull request #155 from dwijnand/utilTesting
...
Kill utilTesting
2018-02-28 02:17:55 -05:00
Dale Wijnand
44a2f1d92c
Kill utilTesting
...
No need for a 1-line, 1-class jar
2018-02-23 18:16:30 +00:00
Jason Zaugg
d9b130d519
Optimize ConsoleAppender.appendLog
2018-02-23 14:52:45 +10:00
Dale Wijnand
85f7d807e1
Merge pull request #153 from jrudolph/jr/optimize-initStringCodecs
...
In initStringCodecs avoid reflect universe initialization
2018-02-19 10:11:49 +00:00
Johannes Rudolph
0ebb7a5662
In initStringCodecs avoid reflect universe initialization
...
This showed up in profiling. It's known that TypeTags are expensive. Even
more so if the reflect universe is accessed during startup when the
class loading and JIT compiler are busy enough with other stuff.
2018-02-19 09:19:31 +01:00
Jason Zaugg
b68071a488
Cache evidence params for hot method
2018-02-17 14:59:36 +10:00
Dale Wijnand
9891f07bda
Merge pull request #150 from dwijnand/merge-1.1.x-into-1.x
...
Merge 1.1.x into 1.x
2018-02-14 14:23:59 +00:00
Dale Wijnand
130ec14c99
Merge branch '1.1.x' into merge-1.1.x-into-1.x
...
* 1.1.x:
Update version/sbt.version
Add version 1.1.2 to mimaPreviousArtifacts
Conflicts:
project/build.properties
2018-02-14 11:01:16 +00:00
Dale Wijnand
9f12566a51
Merge pull request #149 from dwijnand/versions
...
Update version/sbt.version
2018-02-14 10:54:06 +00:00
Dale Wijnand
f593fc6c74
Update version/sbt.version
2018-02-14 10:44:16 +00:00
Dale Wijnand
b0baf7de6d
Merge pull request #146 from dwijnand/SourcePosition
...
Give SourcePosition a macro instance creator
2018-02-09 12:38:47 +00:00