Commit Graph

17922 Commits

Author SHA1 Message Date
eugene yokota 870be12f41
Merge pull request #5862 from eatkins/success
Set isSuccessEnabled on SimpleTerminal
2020-09-19 01:13:09 -04:00
eugene yokota 908371ff5c
Merge pull request #5857 from adpi2/issue/full-paths
Report absolute paths by default during compilation
2020-09-19 01:12:26 -04:00
Adrien Piquerez 8b8745cb0b Fix completion 2020-09-17 14:23:28 +02:00
Adrien Piquerez 759392aaf0 Add BSP `buildTarget/run` test 2020-09-17 14:23:07 +02:00
Adrien Piquerez 9f04358fce Add BSP buildTarget/run endpoint 2020-09-17 13:40:50 +02:00
Adrien Piquerez 92fb69f370 Add BSP buildTarget/scalaMainClasses endpoint 2020-09-17 13:32:30 +02:00
Ethan Atkins c9e98c4cd5 Set isSuccessEnabled on SimpleTerminal
The SimpleTerminal is used when sbt is run with -Dsbt.log.noformat=true.
There is no reason to disable success messages by default.

Fixes https://github.com/sbt/sbt/issues/5861
2020-09-16 09:52:57 -07:00
Adrien Piquerez 3c24e9d29d Report absolute paths by default 2020-09-16 11:12:12 +02:00
eugene yokota 3bee2cff9a
Merge pull request #5854 from eatkins/jline-reader
Use DumbTerminal if sbt.log.noformat=true
2020-09-15 16:45:04 -04:00
eugene yokota 18d9348905
Merge pull request #340 from izharahmd/wip/ivy-publish-with-retry-backoff
Retry with backoff while publishing
2020-09-15 16:34:23 -04:00
eugene yokota 3923d52c18
Merge pull request #5855 from eatkins/symlinks
Skip contents of symlinked directories in clean
2020-09-15 16:08:18 -04:00
Ethan Atkins a946cbf702 Skip contents of symlinked directories in clean
The clean task was previously deleting the contents of directories that
were symlinked into the target directory. This was an oversight because
it never occurred to me that users might symlink a directory whose
contents they did not want deleted into the target directory.
2020-09-15 09:24:04 -07:00
Ethan Atkins 334146f541 Use DumbTerminal if sbt.log.noformat=true
When sbt is run with the sbt.log.noformat system property set to true,
no virtual io is used which causes the jline 3 terminal that we creaate
to not work at all. For reasons that I don't understand, it is also
necessary to set the jline.terminal system property to none to make the
dumb terminal work.
2020-09-15 09:10:21 -07:00
Alexandre Archambault 735e71518f
Update README.md 2020-09-15 17:34:46 +02:00
izharahmd fa0f859552 retry with backoff while publishing 2020-09-15 20:32:38 +05:30
Alexandre Archambault f8c75d7033 Address deprecation warning 2020-09-15 11:36:11 +02:00
Alexandre Archambault 90f44bc5cc Deprecated temporary helper 2020-09-15 11:36:11 +02:00
Alexandre Archambault 29d957604e Make dependency-graph scripted test Windows-proof 2020-09-15 11:36:11 +02:00
Alexandre Archambault a7acf35d0c Use latest coursier and sbt-coursier on CI
Seems older coursier versions frequently run into errors like

    C:\Users\...\AppData\Local\Coursier\cache\v1\.structure.lock (Access is denied)
2020-09-15 11:33:20 +02:00
Alexandre Archambault a945f5b9fa Bump metadata submodule
The latest one has a more recent default coursier launcher
2020-09-15 11:33:20 +02:00
Alexandre Archambault 4ca3b89bc1 Remove now unused sbt-shading stuff in script 2020-09-15 11:33:20 +02:00
Alexandre Archambault 2c0c9153f5 Switch CI over to GitHub Actions 2020-09-15 11:33:20 +02:00
eugene yokota 70111bb689
Merge pull request #5851 from eed3si9n/wip/bumpcoursier
lm-coursier-shaded 2.0.0-RC6-9
2020-09-14 23:58:36 -04:00
Eugene Yokota 72acc5ce74 lm-coursier-shaded 2.0.0-RC6-9
https://github.com/coursier/sbt-coursier/releases/tag/v2.0.0-RC6-9
2020-09-14 22:44:16 -04:00
eugene yokota 66308bae45
Merge pull request #5847 from eed3si9n/wip/promise_propagate
Cancel all promises if one fails
2020-09-14 22:33:18 -04:00
eugene yokota f033aa5ca1
Merge pull request #5844 from eed3si9n/wip/pipelining_adjustments
Fix mixed pipelining
2020-09-14 22:32:48 -04:00
Alexandre Archambault bbaf162e39 Rename script 2020-09-14 16:00:29 +02:00
Alexandre Archambault 81e4d67fa9 Remove unnecessary variable 2020-09-14 16:00:29 +02:00
Scala Steward 42ac1e48ab
Update coursier to 2.0.0-RC6-26 (#268) 2020-09-14 15:58:19 +02:00
Alexandre Archambault cc0643e71b
Remove sbt-pgp-coursier (#269) 2020-09-14 14:13:11 +02:00
eugene yokota 75da49556c
Merge pull request #5838 from adpi2/bsp-reload
Add BSP workspace/reload
2020-09-14 08:08:14 -04:00
Adrien Piquerez ac85117841 Add BSP workspace/reload 2020-09-14 13:10:11 +02:00
Eugene Yokota 55d2b0a3c6 Cancel all promises if one fails
Fixes https://github.com/sbt/sbt/issues/5822

Currently the entire shell gets stuck when there's a compilation error with pipelining.
This at least returns to sbt shell.
2020-09-14 01:04:10 -04:00
Ethan Atkins 10e2f2821e
Merge pull request #5846 from eatkins/json-read
Expand json rpc request input buffer if needed
2020-09-13 21:09:27 -07:00
Ethan Atkins 5ef777a806
Merge branch 'develop' into json-read 2020-09-13 20:32:38 -07:00
Ethan Atkins 7b31495ae3 Expand json rpc request input buffer if needed
When a json rpc request is specified without any headers, the size of
the message may exceed the buffer that was created for reading hdeaders.
This would cause an exception to be thrown when creating a string from
the header buffer because the number of bytes requested would exceed the
capacity of the buffer. To fix this, we can expand the buffer
dynamically if needed. For the common case when the headers are
specified, this should be a no-op.
2020-09-13 19:43:06 -07:00
eugene yokota 6ebba09020
Merge pull request #5845 from eed3si9n/wip/sig_files_written
Demote [sig files written]
2020-09-13 19:39:05 -04:00
Eugene Yokota 350a6af6ef Demote [sig files written]
It gets ridiculous seeing the screen fill up with [sig files written] after a while.
Here's a quick hack to demote that stuff.
2020-09-13 17:54:36 -04:00
Eugene Yokota 2a8c184a51 Fix mixed pipelining
Together with https://github.com/sbt/zinc/pull/920 this fixes most of the mixed pipelining issues.

1. Previous values are carried from `compileScalaBackend` in `compileJavaTask`.
2. `compileJava / compileOptions ` now uses `compile / compileOptions` to avoid unintentional change of javac or scalac options.
3. Hooks up early compile analysis store.
2020-09-13 16:25:09 -04:00
eugene yokota 8053ebea73
Merge pull request #5823 from eed3si9n/wip/server_cmd
Add pseudo --server command
2020-09-12 15:46:22 -04:00
Eugene Yokota d24cd2b3f7 Rename --close-io-streams to --detach-stdio 2020-09-12 14:19:37 -04:00
Eugene Yokota bba3d08aac Add pseudo --server command
Ref https://github.com/sbt/sbt/issues/5665

This adds `--server` command that is immediately filtered out in Main.scala.
The purpose of `--server` is so we can invoke thin client from `sbt` script at some point in the future when Bash script can parse `project/build.properties`.

`sbtn` would need to call `sbt` again to start the server, and at that point the shell script would need to actually invoke the server. The intent of `--server` is to be used as the tie breaker.

Also build users may want to sometimes call `sbt --server`.
2020-09-12 14:12:02 -04:00
eugene yokota 8160035f41
Merge pull request #5840 from eatkins/play-progress
Skip task progress work if already shutdown
2020-09-12 08:27:42 -04:00
eugene yokota a7f00ecd7a
Merge pull request #5839 from eatkins/play-shell-prompt
Honor shellPrompt override
2020-09-12 08:24:41 -04:00
Ethan Atkins 476cfc6649 Change terminalShellPrompt to colorShellPrompt
I introduced the terminalShellPrompt so that we could generate a prompt
that was colored only if the terminal supported color. Rather than
expose the terminal implementation detail, we can just use a boolean
flag that toggles whether or not color is enabled and sbt can pass in
the value of terminal.isColorEnabled into the function.
2020-09-11 11:47:36 -07:00
Ethan Atkins 5e88d4b233 Warn on progress RejectedExecutionException
It shouldn't be the case that a RejectedExecutionException is thrown
by TaskProgress. If that assumption is violated, log the exception but
don't crash sbt.
2020-09-11 11:39:53 -07:00
Ethan Atkins 4a2bf67eb8 Skip task progress work if already shutdown
The play plugin seems to do out of band task evaluation on a stale State
object in the `run` task. As a result, when sbt tries to schedule tasks
to run, they tried to register the work with a closed TaskProgress
instance. There was no guard against this and it ended up causing a
RejectedExecutionException.
2020-09-11 11:37:17 -07:00
Ethan Atkins a471e7384d Honor shellPrompt override
sbt 1.4.0 generates the shell prompt using the terminal properties for
the specific terminal for which the prompt is rendered. The mechanism
for doing this broke the prompt for projects that overrode the
shellPrompt key, notably the play plugin. After this change, the play
custom prompt is correctly rendered with 1.4.0-SNAPSHOT.
2020-09-11 10:50:21 -07:00
eugene yokota 96b4f7b8e6
Merge pull request #5837 from eatkins/terminal-color
Refactor color settings
2020-09-11 05:48:27 -04:00
eugene yokota f655d91d86
Merge pull request #5836 from eatkins/relay-appender
Use null ConsoleOut for RelayAppender
2020-09-11 05:45:25 -04:00