Commit Graph

5420 Commits

Author SHA1 Message Date
eugene yokota 408ff0d9a1
Merge pull request #69 from eed3si9n/fport/2855
[fport] Add build-level keys to the tab completion
2017-07-07 09:50:32 +01:00
eugene yokota 52bb767bc8
Merge pull request #66 from eed3si9n/wip/212
Scala 2.12
2017-07-07 09:50:31 +01:00
Eugene Yokota 1b19c504a4
Revert "Merge pull request #41 from eed3si9n/wip/2469"
This reverts commit 0da2f30ee8, reversing
changes made to 93418589b7.
2017-07-07 09:50:31 +01:00
Eugene Yokota cfc5efe798
Work around Scala 2.12 init deadlock (SI-9824) 2017-07-07 09:50:30 +01:00
Eugene Yokota 58be28e399
Update Eval
https://github.com/typelevel/cats/blob/e2335730a958ce605f0d75f1b0d838454
2336aaf/core/src/main/scala/cats/Eval.scala
2017-07-07 09:50:30 +01:00
eugene yokota 7035be5107
Merge pull request #57 from dwijnand/deprecations
Remove deprecated methods
2017-07-07 09:50:29 +01:00
Dale Wijnand 95d52077db
Lazily concatenate failed errors for completion [forwardport] (#53)
* Fixes [sbt/sbt#2781]
* When using `<TAB>` completion the failed errors were always
  computed for mathcing projects even if there was no failure,
  leading to excessive computation of Levenshtein distances
  and a large lag (seconds) on builds with many matching
  projects.
2017-07-07 09:50:28 +01:00
Dale Wijnand 1526bf4f85
Remove deprecated methods 2017-07-07 09:50:28 +01:00
eugene yokota 5fe5ff4352
Merge pull request #52 from dwijnand/eval
Really expose Eval. Fixes error in #50
2017-07-07 09:50:27 +01:00
Dale Wijnand 042d3de956
Really expose Eval. Fixes error in #50 2017-07-07 09:50:27 +01:00
eugene yokota e762cae61e
Merge pull request #50 from dwijnand/eval
Expose Eval. Fixes sbt/sbt#2616
2017-07-07 09:50:26 +01:00
Dale Wijnand f6e4c7c85e
Expose Eval. Fixes sbt/sbt#2616 2017-07-07 09:50:25 +01:00
eugene yokota 39fefa9844
Merge pull request #48 from eed3si9n/wip/jline2
Interruptible read line
2017-07-07 09:50:24 +01:00
Eugene Yokota d059b2f486
Handle sleep interruption 2017-07-07 09:50:24 +01:00
eugene yokota 414a7bb5f7
Merge pull request #44 from dwijnand/cleanups
Fix compilation warnings, migrate to blackbox.Context
2017-07-07 09:50:23 +01:00
Eugene Yokota 43215db815
Trying to make readline timeout 2017-07-07 09:50:23 +01:00
Dale Wijnand 84af84c301
Un-deprecate now-private methods 2017-07-07 09:50:22 +01:00
Dale Wijnand c4e6caf0ed
Remove Attribute#rawLabel 2017-07-07 09:50:22 +01:00
Dale Wijnand 8cc4a54c40
Add -Ywarn-unused & -Ywarn-unused-import, & fix warnings 2017-07-07 09:50:21 +01:00
Dale Wijnand 5f2e56a5a8
Fix compilation warnings, migrate to blackbox.Context 2017-07-07 09:50:21 +01:00
Eugene Yokota b64e505746
Update dependencies 2017-07-07 09:50:20 +01:00
eugene yokota d4c83c2c3c
Merge pull request #41 from eed3si9n/wip/2469
FPORT: Completion for build-level keys
2017-07-07 09:50:20 +01:00
Martin Duhem 27dee66399
Address problems reported by Codacy 2017-07-07 09:50:19 +01:00
Dale Wijnand 39ed62ae82
Merge pull request #39 from eed3si9n/wip/jline
FPORT: Workaround for Jline regression
2017-07-07 09:50:18 +01:00
Martin Duhem dca7a109ac
Completion for build-level keys
sbt's shell provided completion only for keys that were relative to a
defined project, but didn't provide completion for keys that belong to
the build definition only.

This commit fixes this issue by defining a new kind of `Parser` (from
which completions are generated) which runs its input simultaneously on
distinct parsers. We now define a parser for project-level keys and
another parser for build-level keys. These two parsers are eventually
combined, and we get the completions of both parsers.

Fixes sbt/sbt#2460
2017-07-07 09:50:18 +01:00
eugene yokota ceca932026
Merge pull request #35 from eed3si9n/wip/warning
Remove some warnings
2017-07-07 09:50:17 +01:00
eugene yokota d4116b03f4
Fixes #2480. Workaround for Jline regression (#2570)
Workaround jline/jline2#205
2017-07-07 09:50:17 +01:00
eugene yokota 31fe561151
Merge pull request #34 from eed3si9n/wip/eval
Eval from Cats
2017-07-07 09:50:16 +01:00
Eugene Yokota d9bd056a29
Remove some warnings 2017-07-07 09:50:16 +01:00
Eugene Yokota 1361e4f18d
Rename Eval#value to get 2017-07-07 09:50:15 +01:00
eugene yokota 108fc67b7d
Merge pull request #33 from sbt/wip/fixthread
Don't inject thread sleep by default
2017-07-07 09:50:14 +01:00
Eugene Yokota f76b2d05d5
Add Eval from Cats - a8ba943fff/core/src/main/scala/cats/Eval.scala 2017-07-07 09:50:14 +01:00
eugene yokota 657c10f9d3
Merge pull request #31 from sbt/wip/thread
Inject thread.sleep, which allows thread interruption during readLine
2017-07-07 09:50:13 +01:00
Eugene Yokota 5811e8a257
Fixes #32. Don't inject thread sleep by default.
Thread sleeping interferes with scripted test when the build cannot be
loaded. The scripted test gets stuck, and jstack shows

    java.lang.Thread.State: TIMED_WAITING (sleeping)
      at java.lang.Thread.sleep(Native Method)
      at sbt.internal.util.InputStreamWrapper.read(LineReader.scala:138)
      at
jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:2
45)
      ....
      at sbt.internal.util.JLine$.withJLine(LineReader.scala:118)
      at sbt.internal.util.JLine.readLine(LineReader.scala:18)
      at
sbt.BuiltinCommands$.sbt$BuiltinCommands$$doLoadFailed(Main.scala:460)
2017-07-07 09:50:13 +01:00
Eugene Yokota 1dfd9db2c7
Inject Thread.sleep periodically during read() to allow thread interruption 2017-07-07 09:50:12 +01:00
Eugene Yokota 972450db5d
Refactor nulls to Option 2017-07-07 09:50:12 +01:00
eugene yokota 4787081532
Merge pull request #30 from dwijnand/bump-sbt-houserules-for-mima
Bump sbt-houserules to add MiMa
2017-07-07 09:50:11 +01:00
eugene yokota ef03c0295c
Merge pull request #19 from sbt/wip/existentials
Fixes sbt/util#14
2017-07-07 09:50:10 +01:00
Dale Wijnand db08c77660
Unexecute Positions 2017-07-07 09:50:10 +01:00
eugene yokota 25cbae2b2e
Merge pull request #18 from sbt/wip/fileinfo
Adds picklers to FileInfo, also new house rules
2017-07-07 09:50:09 +01:00
Eugene Yokota 7a6253a5c3
Fixes sbt/util#14 by rolling back 6175d92338 2017-07-07 09:50:09 +01:00
Eugene Yokota 2cefe315f2
New house rules 2017-07-07 09:50:08 +01:00
eugene yokota af53ad1598
Merge pull request #16 from Duhemm/jline-access
Make `sbt.internal.util.JLine` private to sbt package
2017-07-07 09:50:07 +01:00
Martin Duhem 6eed17ad4e
Make `sbt.internal.util.JLine` private to sbt package
It was private to `sbt.internal.util`, but it is used in sbt's codebase.
2017-07-07 09:50:07 +01:00
eugene yokota ac8c3aefdd
Merge pull request #13 from sbt/wip/packagenames2
package name change and test migration
2017-07-07 09:50:06 +01:00
Eugene Yokota 3bb53ae4fc
sbt.util.internal -> sbt.internal.util package 2017-07-07 09:50:05 +01:00
Eugene Yokota d93db4a634
migrate to scalatest 2.2.4 2017-07-07 09:50:05 +01:00
eugene yokota dd6286044b
Merge pull request #11 from sbt/wip/packagenames
Move util into sbt.util.internal package
2017-07-07 09:50:04 +01:00
Eugene Yokota 53e719656f
Move util into sbt.util.internal package 2017-07-07 09:50:03 +01:00
eugene yokota 9d2abb3cac
Merge pull request #10 from sbt/wip/patmatchwarning
Removes a warning. Ref #4
2017-07-07 09:50:03 +01:00