Commit Graph

11459 Commits

Author SHA1 Message Date
Eugene Yokota 2f2ceeb9c9 Update banner 2021-11-29 05:32:33 -05:00
Eugene Yokota bdccb6cbd5 Zinc 1.6.0-M2 2021-11-29 05:18:00 -05:00
eugene yokota cf3d286499
Merge pull request #6730 from eed3si9n/wip/build-server-reporter
[1.6.x] Fixes fake position handling, take 2
2021-11-28 02:54:29 -05:00
eugene yokota 0b98648454
Merge pull request #6728 from eed3si9n/wip/noserver
--no-server mode
2021-11-27 23:46:39 -05:00
Eugene Yokota 5b179395ec Fixes fake position handling, take 2
Fixes #6720
Ref #5994

Problem
-------
Sometimes the compiler returns a fake position such as `<macro>`.
This causes this causes InvalidPathException on Windows if we try
to convert it into NIO path.

Solution
--------
Looks for less-than sign in the VirtualFileRef and skip those.
Since BSP requires the diagnostic info to be associated with
files, we probably can't do much.
2021-11-27 23:42:20 -05:00
eugene yokota 54f6a49a9d
Merge pull request #6729 from eed3si9n/wip/timeout
Extend supershell close timeout
2021-11-27 23:28:12 -05:00
Eugene Yokota e3afa845ec Extend supershell close timeout
Fixes #6592

Problem
-------
On Heroku there's timeout.

Solution
--------
This seems to be coming from supershell closing the executor.
Extend the timeout to 30s.
2021-11-27 21:26:52 -05:00
Eugene Yokota f11a25a9c9 Add test 2021-11-27 21:19:38 -05:00
Eugene Yokota 7d429c6724 --no-server mode
Fixes #6530
Ref #6101

Problem
-------
Although having sbt server up by default is beneficial to well-tested
platforms like macOS, on less tested setups various native and/or
native-adjacent techniques we use could end up causing instability.

Solution
--------
This adds `--no-server` as a quick way of telling sbt not to start up
the sbt server or create virtual terminal.
2021-11-27 20:20:42 -05:00
David Francoeur a448b1caab
Load credentials from SBT_CREDENTIALS (#6724)
Load credentials from SBT_CREDENTIALS
Prefer sys.env to System.getenv
2021-11-27 02:44:49 -05:00
eugene yokota 64e05bdf68
Merge pull request #6725 from eed3si9n/wip/coursier
lm-coursier 2.0.9
2021-11-26 00:39:51 -05:00
Eugene Yokota db17b5a462 lm-coursier 2.0.9
https://github.com/coursier/sbt-coursier/releases/tag/v2.0.9
https://github.com/coursier/coursier/releases/tag/v2.1.0-M1
2021-11-25 21:32:44 -05:00
eugene yokota b2f0b7dada
Merge pull request #6719 from eed3si9n/wip/line-endings
Fix line endings in msi
2021-11-20 13:33:43 -05:00
Eugene Yokota 307f46a3c0 Fix line endings in msi
Fixes #6717
2021-11-19 20:41:39 -05:00
eugene yokota aa22c02d84
Merge pull request #6716 from eed3si9n/wip/global-keys
Fixes tab completion of global keys
2021-11-16 19:51:58 -05:00
Eugene Yokota 6c68b843d5 Fixes tab completion of global keys
Fixes #1373
Fixes #6715

Following my own PR #2855 around `ThisBuild`, this attempts to fix the
tab completion of globally scoped keys from the shell.
2021-11-16 19:23:25 -05:00
eugene yokota 8f1c0f61a1
Merge pull request #6714 from xuwei-k/position-macro-scala-3
SourcePositionMacro for Scala 3. enable Scala 3 build for some `util` modules
2021-11-16 09:24:18 -05:00
xuwei-k 5c90a84c72 SourcePositionMacro for Scala 3 2021-11-16 16:32:31 +09:00
eugene yokota d01cdd53e1
Merge pull request #6713 from xuwei-k/scala-3-build-settings-1
Update build settings for Scala 3
2021-11-16 01:28:30 -05:00
xuwei-k 38f5449084 Update build settings for Scala 3 2021-11-16 10:19:26 +09:00
kenji yoshida 1f4517d5cc update hedgehog and scalacheck
prepare Scala 3
2021-11-15 13:13:33 +09:00
eugene yokota b3aae681bf
Merge pull request #6711 from xuwei-k/fix-scala-2-13-warn
fix Scala 2.13 warnings
2021-11-14 21:53:57 -05:00
eugene yokota ad6f07bfee
Merge pull request #6710 from xuwei-k/update-scalatest
Update scalatest
2021-11-14 21:34:29 -05:00
xuwei-k 535b15b83e fix Scala 2.13 warnings 2021-11-14 22:59:34 +09:00
xuwei-k aa8b1141f8 Update scalatest 2021-11-14 22:03:59 +09:00
eugene yokota fe02f99a74
Merge pull request #6708 from sbt/hedgehog-resolver
remove unused `bintray-scala-hedgehog` resolver
2021-11-12 19:30:18 +01:00
eugene yokota ab14439441
Merge pull request #6707 from adpi2/fix-6547
Fix infinte loop when server fails to load with batch client
2021-11-12 19:05:31 +01:00
eugene yokota be76165054
Merge pull request #6699 from Nirvikalpa108/fix-#6676
Migrates Treeview.scala to use Contraband
2021-11-12 19:04:10 +01:00
Amina Adewusi 3c81e08fa2 Migrates Treeview.scala to use Contraband
Migrates TreeView.scala to use Contraband from scala.util.parsing.json,
because this is now deprecated.
The TreeView logic is used in the dependencyBrowseTree task.
2021-11-12 16:52:12 +00:00
kenji yoshida 280800c9e9
remove unused `bintray-scala-hedgehog` resolver 2021-11-12 22:16:48 +09:00
Adrien Piquerez 5d5edf2fdc Fix infinte loop when server fails to load with batch client
Shut down server when it is waiting for user input
but stdin has ended.
2021-11-11 22:35:18 +01:00
eugene yokota bcbef795e7
Merge pull request #6703 from adpi2/fix-6698 2021-11-04 04:29:18 -04:00
Adrien Piquerez c77d6dfb38 Fix #6698: Synchronize all RPC messages with systemOut notifications
`systemOut` notifications are buffered so that they are sent at most
once every 20 millisecond. Other RPC messages are not buffered.
As a consequence, some RPC messages can pass in front of some
systemOut notifications.
That's why `sbt --client run` can exit before it receives all the logs.

In general I think it is safer to maintain the order of all messages.
To do so we can force the flush of systemOut before each RPC message.
2021-11-03 10:21:02 +01:00
eugene yokota 530505d063
Merge pull request #6701 from adpi2/bsp-sources-in-base
[BSP] Handle base sources
2021-10-29 17:09:22 -04:00
Adrien Piquerez 75d3bf2b5f [BSP] remove duplicated sources in sbt build target
Also remove the base directory (`./project/`) from the list of source directories
2021-10-29 15:40:00 +02:00
Adrien Piquerez e64c71dd58 [BSP] Support base source files 2021-10-29 15:40:00 +02:00
eugene yokota bc95ab25a2
Merge pull request #6693 from kijuky/apply-asciigraphwidth-to-dependencytree
Enable the asciiGraphWidth setting to the dependencyTree tasks. #5962
2021-10-22 00:11:31 -04:00
eugene yokota 9e71209cdd
Merge pull request #6697 from er1c/6696-killall-runner-command
[#6696] Add shutdownall to sbt runner to shutdown all sbt-launch processes
2021-10-22 00:06:53 -04:00
Eric Peters 9516e10dbe [#6696] Add shutdownall to sbt runner to shutdown all sbt-launch processes 2021-10-21 10:42:42 -07:00
kijuky 890ecdc556 Overloaded without passing null. 2021-10-19 13:51:15 +09:00
kijuky 76c1b68516 Enable the asciiGraphWidth setting to the dependencyTree tasks. #5962 2021-10-19 02:15:31 +09:00
eugene yokota 4f102fc46f
Merge pull request #6691 from eed3si9n/wip/github_actions
Switch to using actions/setup-java@v2
2021-10-16 16:50:37 -04:00
Eugene Yokota 376823bf08 Use GitHub Action's branching 2021-10-16 16:27:15 -04:00
Eugene Yokota 9d9016f4cf Switch to using actions/setup-java@v2 2021-10-16 15:59:58 -04:00
eugene yokota b795b622d7
Merge pull request #6680 from er1c/mainlogging-defaultscreen-args
Update MainAppender.defaultScreen to use passed in console arg #6678
2021-10-16 13:48:08 -04:00
eugene yokota 7b899f035e
Merge pull request #6688 from xuwei-k/ignoreScalaLibrary-test
re-enable `dependency-graph` scripted tests
2021-10-11 12:05:50 -04:00
xuwei-k 9052c745b1 re-enable `dependency-graph` tests 2021-10-11 20:40:24 +09:00
eugene yokota adc217000b
Merge pull request #6673 from kxbmap/scripted-java-home
Make javaHome that forks scripted tests configurable
2021-10-05 11:08:53 -04:00
kxbmap 59f178a4c4 Make javaHome that forks scripted tests configurable
Normally scripted tests are forked using the JVM that is running sbt.
If set `scripted / javaHome`, forked using it.

```
scripted / javaHome := Some(file("/path/to/jdk-x.y.z"))
```

Or use `java++` command before scripted.

```
sbt> java++ 11!
sbt> scripted
```
2021-10-05 00:35:56 +09:00
eugene yokota 5f56fce580
Merge pull request #6684 from kxbmap/win-jdk-distributions
Add Windows Java home selectors for some distributions
2021-10-03 11:18:37 -04:00