Commit Graph
7575 Commits
Author SHA1 Message Date
Dale Wijnand 087f21741d Merge pull request #3975 from eed3si9n/wip/serverext
make sbt server extensible
2018-03-15 01:58:07 +00:00
Dale Wijnand 98332c0891 Reply to sbt/exec w/ a Response/Error w/ error code 2018-03-14 13:56:29 +00:00
Dale Wijnand bde6365013 Add an optional exitCode to ExecStatusEvent so clients can use it 2018-03-14 11:56:51 +00:00
Dale Wijnand 7baf97d2a6 Introduce ErrorCodes.UnknownError
Defined in the application defined errors range.
2018-03-14 11:56:51 +00:00
Dale Wijnand 3530349e9a Rename ErrorCodes' UnknownErrorCode to UnknownServerError
Allows for a non-server-specific unknown error code to be defined.
2018-03-14 11:56:50 +00:00
Dale Wijnand 8972287892 Cleanup ErrorCodes 2018-03-14 11:56:29 +00:00
Eugene Yokota 0433440c59 move ServerHandler to internal per review 2018-03-13 23:42:40 +09:00
Eugene Yokota f13465246c include the full body in debug message 2018-03-13 23:02:45 +09:00
Eugene Yokota cd9f0d2711 make sbt server extensible
Fixes #3890

Here's an example:

```scala
    Global / serverHandlers += ServerHandler({ callback =>
      import callback._
      import sjsonnew.BasicJsonProtocol._
      import sbt.internal.protocol.JsonRpcRequestMessage
      ServerIntent(
        {
          case r: JsonRpcRequestMessage if r.method == "lunar/helo" =>
            jsonRpcNotify("lunar/oleh", "")
            ()
        },
        PartialFunction.empty
      )
```
2018-03-13 23:02:45 +09:00
Eugene Yokota d4cdb11b53 typo fix 2018-03-13 17:47:11 +09:00
Dale Wijnand dd4de14593 Upgrade to contraband 0.4.0 2018-03-12 15:39:07 +00:00
Eugene Yokota 07e26a1dcf don't use toStream
Ref #3979
toStream doesn't help performance.
2018-03-10 18:43:43 -05:00
Eugene Yokota d2f2a90d5e handroll for-expression
Ref https://github.com/sbt/sbt/pull/3979

Based on #3979 this handrolls the for-express using while.
2018-03-10 18:43:43 -05:00
Eugene Yokota b82a1870a7 add tests around scope delegation 2018-03-10 17:24:39 -05:00
eugene yokota 3559de06aa Merge pull request #3999 from eed3si9n/wip/cache-watch-service
[bport] Cache watch service
2018-03-09 17:42:11 -05:00
Ethan Atkins 5df1d8e23f Cache watch service
I noticed that my custom WatchService was never cleaned up by sbt and
realized that after every build we were making a new WatchService. At
the same time, we were reusing the WatchState from the previous run,
which was using the original WatchService. This was particularly
problematic because it prevented us from registering any paths with the
new watch service. This may have prevented some of the file updates
from being seen by the watch service. Moreover, because we lost the
reference to the original WatchService, there was no way to clean it up,
which was a resource leak.

May be related to #3775, #3695
2018-03-09 06:11:52 -05:00
Dale Wijnand ed5a8c118b Upgrade to contraband 0.3.3 2018-03-08 12:49:38 +00:00
Dale Wijnand 80d342a811 Merge pull request #3995 from ruippeixotog/cross-strict-aggregation
Filter incompatible aggregates in cross switch commands
2018-03-08 11:27:55 +00:00
Dale Wijnand a85d7606f3 Merge pull request #3994 from fmlrt/in_configuration_scope_filter_factories
Add more configuration axis ScopeFilter factory methods
2018-03-08 11:26:38 +00:00
eugene yokota ec93e3e9d5 Merge pull request #3947 from exoego/global-eviction-warning-options
Add the eviction warnings options to global
2018-03-07 20:40:24 -05:00
TATSUNO Yasuhiro 68f58aba87 Merge branch '1.x' into global-eviction-warning-options 2018-03-08 09:18:53 +09:00
eugene yokota 051d09e921 Merge pull request #3998 from eed3si9n/wip/fix-3143
Add test to confirm leak is gone
2018-03-07 18:16:58 -05:00
exoego dc4f93a7c3 Remove unnecessary GlobalScope 2018-03-08 08:14:39 +09:00
eugene yokota 92c95ce290 Merge pull request #3997 from eed3si9n/wip/test-status-thread-safety
Fix race condition in non-forked, parallel tests.
2018-03-07 16:18:55 -05:00
jvican f24e5f2136 Add test to confirm leak is gone
The following commit adds the test case used to report #3143 in a big
projects with lots of cross versions and modules. The execution of the
test is instant!
2018-03-07 16:15:29 -05:00
Eugene Yokota 49b4c3a3e0 mima 2018-03-07 15:31:24 -05:00
Dale Wijnand 10275489d8 Merge pull request #3987 from dwijnand/document-Rich-Init-classes
Document RichInitX classes
2018-03-07 09:44:19 +00:00
Dale Wijnand 7258f5836e Merge pull request #3988 from dwijnand/scripted-cleanups
Cleanups from my recent work in scripted
2018-03-07 09:39:40 +00:00
eugene yokota 4858c0772f Merge pull request #3996 from itohiro73/fix-contributing
Fix #3990: Add CLA instruction to CONTRIBUTING.md
2018-03-07 01:23:06 -05:00
Hiroshi Ito 1fef1a5a6a Fix #3990: Add CLA instruction to CONTRIBUTING.md 2018-03-07 11:14:49 +09:00
Rui Gonçalves 251e5ab26e Filter incompatible aggregates in cross switch commands 2018-03-07 00:27:22 +00:00
Maksym Fedorov 15f4498494 Add more configuration axis ScopeFilter factory methods 2018-03-06 23:01:31 +01:00
Dale Wijnand 26014a527e Use Def.settings (bikeshed) 2018-03-06 19:20:33 +00:00
Dale Wijnand 4b36bca5ec Fix label so it's copy-and-paste-able 2018-03-06 11:59:49 +00:00
Dale Wijnand 359a0109fd Cleanup & simplify actions/generator 2018-03-06 11:59:48 +00:00
Dale Wijnand 3791e489b2 Use Def.settings in build.sbt 2018-03-06 11:59:27 +00:00
Dale Wijnand a69c3d6e13 Format build.sbt 2018-03-06 11:59:27 +00:00
Dale Wijnand 621ad2b553 Cleanup TaskNegSpec 2018-03-06 11:59:27 +00:00
Dale Wijnand 7b11729f8c Cleanup State#process 2018-03-06 11:59:26 +00:00
Dale Wijnand 685b416b8e Cleanup Main 2018-03-06 11:59:26 +00:00
Dale Wijnand 2effe0845f Cleanup IPC 2018-03-06 11:59:26 +00:00
Dale Wijnand 89e501443c Cleanup SbtHandler 2018-03-06 11:59:26 +00:00
Dale Wijnand 4debec0053 Cleanup ScriptedTests 2018-03-06 11:54:14 +00:00
Dale Wijnand cb2e4e67fd Cleanup BatchScriptRunner 2018-03-06 11:54:13 +00:00
Dale Wijnand b8abf4285f Make BatchScriptRunner.States hold StatementHandler#State 2018-03-06 11:54:13 +00:00
Dale Wijnand 9d808a389c Update PublishBinPlugin to current sbt 2018-03-06 11:54:13 +00:00
Dale Wijnand dbbba67d36 Fix a Scaladoc error in BuildStructure 2018-03-06 11:54:13 +00:00
Dale Wijnand 82c39ec96f Fix a "discarded non-Unit value" warning in TaskRunnerFork 2018-03-06 11:54:13 +00:00
Dale Wijnand 6f52437e95 Fix a "discarded non-Unit value" warning in FileExamplesTest 2018-03-06 11:54:12 +00:00
Dale Wijnand 78f4f56d1c Fix 2 "discarded non-Unit value" warnings in ScriptedPlugin 2018-03-06 11:54:12 +00:00