Commit Graph

17847 Commits

Author SHA1 Message Date
Ethan Atkins 0a8e8a45d0 Catch RejectedExecutionException in MainLoop
sbt 1.4.x was printing a very verbose and annoying
RejectedExectionException when the user cancelled tasks with ctrl+c.

Fixes #6192
2020-12-18 16:57:27 -08:00
eugene yokota 8e06d2315d
Merge pull request #351 from adpi2/sbt-dotty
Adapt ScalaOverride to Scala 3
2020-12-18 13:57:39 -05:00
Adrien Piquerez 24f85fd18c Adapt ScalaOverride to Scala 3 2020-12-18 17:28:47 +01:00
eugene yokota 0672da475d
Merge pull request #350 from adpi2/sbt-dotty
Add Scala 3 artifacts and binary versioning
2020-12-17 11:04:09 -05:00
eugene yokota 1dcafebb9c
Merge pull request #6207 from adpi2/scala3-libmanagement
Remove dotty tool dependencies
2020-12-17 11:03:09 -05:00
Adrien Piquerez f38a7272e7 Remove dotty tool dependencies 2020-12-17 10:24:07 +01:00
Adrien Piquerez 48b2a7a0a1 Add Scala 3 artifacts 2020-12-17 09:32:40 +01:00
Adrien Piquerez f1ede7cd06 Add Scala 3 binary versioning 2020-12-17 09:32:40 +01:00
Eugene Yokota 04eac0421b sbtn 1.4.5 2020-12-14 01:32:32 -05:00
eugene yokota acc94fd847
Merge pull request #6199 from adpi2/sbt-dotty
Add compiler-interface to the Scala Instance top loader
2020-12-11 13:32:06 -05:00
Adrien Piquerez c9ab2ee558 Put compiler-interface in the Scala Instance top loader 2020-12-11 11:47:08 +01:00
Scala Steward a7c6f77335
Update scala-collection-compat to 2.3.1 (#299) 2020-12-11 00:07:42 +01:00
Scala Steward d917a137ef
Update sbt-ci-release to 1.5.5 (#300) 2020-12-11 00:07:34 +01:00
eugene yokota 5d1c394bb4
Merge pull request #6190 from mkurz/fix_onLoad
onLoad now runs with correct FileTreeRepository and CacheStoreFactory
2020-12-03 21:28:34 -05:00
Matthias Kurz 0dc7622969
Use identity 2020-12-04 00:36:48 +01:00
Matthias Kurz 8e48630376
onLoad now runs with correct FileTreeRepository and CacheStoreFactory 2020-12-04 00:01:47 +01:00
eugene yokota 4d1af77701
Merge pull request #6189 from eatkins/jline-console-close
Close jline 3 terminal when console exits
2020-12-03 13:01:59 -05:00
Ethan Atkins 2e208af7c1 Close jline 3 terminal when console exits
The jline 3 Terminal is an autocloseable and should be closed when we're
down with it. I'm not exactly sure what resources we were potentially
leaking, but the jline3term variable is an instance of the jline
AbstractTerminal class which I know can create a thread in some
circumstances. This came up while working on #6185.
2020-12-03 08:30:14 -08:00
Eugene Yokota 7781c86aea Try shorter decoding 2020-12-02 21:26:41 -05:00
Eugene Yokota fba70c7af2 sbt-pgp 2.1.1 2020-12-02 20:29:50 -05:00
eugene yokota ed3d0bfea7
Merge pull request #43 from fthomas/patch-1
Add homepage setting to build
2020-12-02 10:07:12 -05:00
Frank S. Thomas d5505a752a
Remove comma
Co-authored-by: Anton Sviridov <keynmol@gmail.com>
2020-12-02 13:51:59 +01:00
Frank S. Thomas 82275d07ac
Add homepage setting to build
This enables Scala Steward to link to this page, the GitHub release notes
and version diff in its pull requests.
2020-12-02 13:02:02 +01:00
Eugene Yokota 9cf5d62edc Decode myself 2020-12-02 03:55:54 -05:00
Eugene Yokota cbd18b9d28 sbt-pgp 2.1.0-M1 2020-12-02 03:45:42 -05:00
Eugene Yokota 7105bf271b setup-gpg 2020-12-02 01:51:29 -05:00
Eugene Yokota 53618c6483 gpg stuff 2020-12-02 01:44:00 -05:00
Eugene Yokota f20064cf81 gpg stuff 2020-12-02 01:40:29 -05:00
eugene yokota 756855ae8b
Merge pull request #42 from sbt/wip/scala3
Use Scala's ABI version to generate suffix
2020-12-02 01:05:05 -05:00
Eugene Yokota 884440b943 Use Scala's ABI version to generate suffix
Fixes #37
To support cross building of 3.0.0-M1 and 3.0.0-M2, use the ABI version
to generate the subproject suffix instead of the partial version (first
    two segments)
2020-12-02 00:50:03 -05:00
Eugene Yokota cb72b1e9f1 Port fix for sandwich and Scala.JS
Ref https://github.com/sbt/sbt/pull/5984
2020-12-02 00:28:57 -05:00
eugene yokota e373bfc3cc
Merge pull request #41 from sbt/wip/build2
Tag-based release
2020-12-02 00:07:31 -05:00
Eugene Yokota f5c7156e24 Tag-based release 2020-12-02 00:00:15 -05:00
eugene yokota bd407ae629
Merge pull request #40 from sbt/wip/actions
Migrate to GitHub Actions
2020-12-01 23:35:45 -05:00
Eugene Yokota 3525d3a108 Disable scala-native tests
Ref https://github.com/scala-native/scala-native/issues/2024
2020-12-01 23:27:58 -05:00
Eugene Yokota 1e5fec7398 Migrate to GitHub Actions 2020-12-01 23:03:21 -05:00
eugene yokota 67f259b4bb
Merge pull request #39 from sbt/wip/actions0
Preliminary GitHub Actions
2020-12-01 22:56:09 -05:00
Eugene Yokota 29ff81ec14 Preliminary GitHub Actions 2020-12-01 22:54:43 -05:00
eugene yokota 0843222509
Merge pull request #36 from keynmol/expose-project-axes
Make the generated subproject self-aware about its own virtual axes
2020-12-01 22:40:19 -05:00
Guillaume Martres 7f3ce50014 dotty-library is called scala3-library now
I though this would help with
https://github.com/lampepfl/dotty/issues/10558 but `sbt repl` still
hides the input after typing a line and pressing enter even after this
change.
2020-11-30 17:08:04 +01:00
eugene yokota 2bbbcfae77
Merge pull request #6174 from hamnis/bsp_connection_file_possibly_disabled
Make it possible to not write the bsp connection file
2020-11-29 11:46:24 -05:00
Erlend Hamnaberg a554976ffb Update main/src/main/scala/sbt/internal/server/BuildServerProtocol.scala
Change from review

Co-authored-by: Adrien Piquerez <adrien.piquerez@gmail.com>
2020-11-29 16:36:38 +01:00
Ethan Atkins d167dee7d2 Add --sbt-launch-jar command line arg to client
The intellij bsp integration launches sbt with the launcher and runs
-bsp. This doesn't work if sbt is not on intellij's path. To try and
work around this, we can add an option --sbt-launch-jar that is
recognized by the network client and will make it use the launch jar
rather than the sbt script to launch a new server if needed.
2020-11-27 12:21:21 -08:00
Ethan Atkins b70bdce683 Set the exit value when sbt is started with -client 2020-11-27 12:12:15 -08:00
Erlend Hamnaberg 341e09a07e Make it possible to not write the bsp connection file
Made the bspConfig task dependendant on the bspConfig value.
Changed the bspConfig setting to use a attributeKey so we can use it in the server as well.
2020-11-27 20:00:12 +01:00
João Ferreira e1d8f0cafd
Updates to Coursier 2.0.7 (#6120)
* Updates to Coursier 2.0.7

https://github.com/coursier/sbt-coursier/releases/tag/v2.0.4 which includes https://github.com/coursier/coursier/releases/tag/v2.0.7

> Memo-ize classes that can be created at a high rate

coursier.core.{Dependency, Module, Publication} are now memo-ized (using weak references). This can lower the amount of duplicate instances of these objects, and lower GC pressure.
2020-11-26 19:25:37 -05:00
eugene yokota 29358529f9
Merge pull request #6171 from eatkins/ctrl-c-watch
Fix ctrl+c handling after exiting watch
2020-11-26 12:30:59 -05:00
Ethan Atkins 5c508e4275 Fix waitWatch failure handling
The waitWatch command is very similar to shell in that it should
override the onFailure command to be itself. It also enqueues itself to
remaining commands whenever it reads a new command which made it
unnecessary to append waitWatch to the runCommmand in Continuous.
2020-11-25 14:54:13 -08:00
Ethan Atkins 90ca463c70 Add signal registration in LineReader
It is possible for the signal handler to get in a state where it has no
effect in the shell. When this happens, entering ctrl+c does not exit
the shell. To ensure that ctrl+c always exits the shell, we can register
a signal handler in the line reader that write -1 to the terminal input
stream, which should cause the line reader to return an exit command.
2020-11-25 14:31:29 -08:00
Ethan Atkins c24e7da844 Rethrow InterruptedException instead of ClosedException
There are cases where sbt will incorrectly shutdown if the jline reader
is interrupted while filling the input buffer. To fix this we can throw
an InterruptedException instead of a ClosedException.

The repro for this was start `sbt`, input `~compile` and while sbt was
starting up, open a source file with vim using the metals bsp
integration. sbt server would end up shutting down everytime after a
single compilation iteration.
2020-11-25 14:31:29 -08:00