Commit Graph

23 Commits

Author SHA1 Message Date
Eugene Yokota ef2d079494 Revert "Merge pull request #41 from eed3si9n/wip/2469"
This reverts commit 0da2f30ee8, reversing
changes made to 93418589b7.
2017-01-16 13:26:31 -05:00
Dale Wijnand 033adfe4ea
Remove deprecated methods 2016-11-15 17:14:10 +00:00
Dale Wijnand ea56f331a1 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.
2016-10-31 09:23:38 +00:00
Eugene Yokota a38e100678 Handle sleep interruption 2016-09-12 23:11:20 -04:00
Eugene Yokota bc32cb4c6f Trying to make readline timeout 2016-09-12 23:11:20 -04:00
Dale Wijnand 121e7f5d9e Add -Ywarn-unused & -Ywarn-unused-import, & fix warnings 2016-06-19 11:42:31 +01:00
Dale Wijnand d0826ff13c Fix compilation warnings, migrate to blackbox.Context 2016-06-19 11:16:02 +01:00
Martin Duhem 605beef7d3 Address problems reported by Codacy 2016-05-02 05:51:01 -04:00
Martin Duhem 1f45027b3a 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
2016-05-02 05:50:28 -04:00
eugene yokota d49b6fd420 Fixes #2480. Workaround for Jline regression (#2570)
Workaround jline/jline2#205
2016-05-02 03:27:38 -04:00
Eugene Yokota 299484cee6 Remove some warnings 2016-04-01 15:27:37 -04:00
Eugene Yokota f4055e6c5f 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)
2016-03-31 01:28:55 -04:00
Eugene Yokota 073f2be487 Inject Thread.sleep periodically during read() to allow thread interruption 2016-03-18 21:58:40 -04:00
Eugene Yokota 5004b8a515 Refactor nulls to Option 2016-03-18 02:38:06 -04:00
Eugene Yokota 79b90917ec New house rules 2015-09-16 22:42:10 -04:00
Martin Duhem aec925b57f Make `sbt.internal.util.JLine` private to sbt package
It was private to `sbt.internal.util`, but it is used in sbt's codebase.
2015-09-10 14:39:29 +02:00
Eugene Yokota 0a2d39673c sbt.util.internal -> sbt.internal.util package 2015-09-05 00:51:58 -04:00
Eugene Yokota c20887853e migrate to scalatest 2.2.4 2015-09-04 17:40:48 -04:00
Eugene Yokota bc54e035ef Move util into sbt.util.internal package 2015-09-04 12:54:38 -04:00
Martin Duhem 6175d92338 Add recommended compiler flags, fix most of the warnings 2015-08-31 15:25:10 +02:00
Martin Duhem 6603a94847 Add sbt-houserules, formatting. 2015-08-31 10:55:02 +02:00
Martin Duhem b4e27ce471 Update IO library to sbt/IO v1.0.0-M1 2015-08-31 01:51:03 +02:00
Eugene Yokota 871b4f4eef move modules around. 2015-08-20 00:59:57 -04:00