eugene yokota
c00a2eacf2
Merge pull request #6870 from eatkins/watch-on-termination
...
Restore watchOnTermination callbacks
2022-04-11 13:43:23 -04:00
Ethan Atkins
379503a894
Restore watchOnTermination
...
At some point the watchOnTermination callback stopped working. I'm not
exactly sure how or why that happened but it is fairly straightforward
to restore. The one tricky thing was that the callback has the signature
(Watch.Action, _, _, _) => State, which requires propagating the action
to the failWatch command. The easiest way to do this was to add a
mutable field to the ContinuousState. This is rather ugly and reflects
some poor design choices but a more comprehensive refactor is out of
the scope of this fix.
This commit adds a scripted test that ensures that the callback is
invoked both in the successful and unsuccessful watch cases. In each
case the callback deletes a file and we ensure that the file is indeed
absent after the watch exits.
2022-04-09 15:49:10 -07:00
Ethan Atkins
d3ee1d5942
Move on-termination test
2022-04-09 15:40:52 -07:00
dependabot[bot]
e0f309f4c6
Bump actions/cache from 2.1.7 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 16:00:38 +09:00
eugene yokota
878250e78e
Merge pull request #6847 from tanishiking/donot-publish-bsp
...
[BSP]Do not fire `build/publishDiagnostics` if there are (and were) no problems
2022-03-27 00:10:32 -04:00
eugene yokota
c09a8b579f
Merge pull request #6849 from bjaglin/includePluginResolvers
...
includePluginResolvers should work for coursier resolutions
2022-03-27 00:03:20 -04:00
eugene yokota
204bedac9c
Merge pull request #6832 from sbt/dependabot/github_actions/actions/setup-python-3
...
Bump actions/setup-python from 2 to 3
2022-03-23 14:43:41 -04:00
Brice Jaglin
fb479efdf9
includePluginResolvers should work for coursier resolutions
2022-03-23 12:25:35 +01:00
Rikito Taniguchi
893cfbba39
Add test to verify server doesn't send notifications
2022-03-21 22:14:44 +09:00
Rikito Taniguchi
f118d2d73b
Re-publish warnings on BSP server startup
...
Imitate 8aaf828b03
2022-03-21 22:14:42 +09:00
Rikito Taniguchi
80e87531d3
Don't fire publishDiagnostic if there's no problems both in current and previous compilation
2022-03-21 22:14:04 +09:00
eugene yokota
2338bea9db
Merge pull request #6839 from sbt/1.7.x
...
Porting 1.7.x to develop
2022-03-18 12:17:26 -04:00
Adrien Piquerez
f0552e4bc3
Merge pull request #6830 from kpodsiad/feat/scala-test-classes-framework
...
feat: add optional framework field to the bsp
2022-03-16 08:56:10 +01:00
Kamil Podsiadlo
ce978a19ed
tests: add test case for framework field in scala test classes request
2022-03-10 19:56:49 +01:00
eugene yokota
7c197ea8ee
Merge branch 'develop' into dependabot/github_actions/actions/setup-python-3
2022-03-08 18:54:40 -07:00
eugene yokota
fedf6af60d
Merge pull request #6833 from sbt/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2 to 3
2022-03-08 18:54:22 -07:00
Adrien Piquerez
1396e1605d
Try fix CI: Build and test (6)
2022-03-08 18:19:20 +01:00
dependabot[bot]
144398ec73
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 04:03:17 +00:00
dependabot[bot]
466410464c
Bump actions/setup-python from 2 to 3
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 04:03:15 +00:00
Kamil Podsiadlo
23b50688ba
feat: add optional framework field to the bsp
2022-03-04 10:53:25 +01:00
eugene yokota
ba5f7527fe
Merge pull request #6824 from gontard/remote_cache_not_found_log
...
Improve log for not found remote cache artifact
2022-02-26 20:43:00 -05:00
gontard
d25dfd06ab
Improve log for not found remote cache artifact
...
Before
remote cache not found for 0.0.0-7c40144bd1c774e6
After
remote cache artifact not found for org.gontard:sbt-test:0.0.0-7c40144bd1c774e6 Some(cached-compile)
2022-02-25 16:14:53 +01:00
eugene yokota
18882088cd
Merge pull request #6820 from tsawada/friendly-curl
...
launcher: debian package to depend on curl | wget
2022-02-21 23:39:41 -05:00
Takeo Sawada
a0e5b553ef
launcher: debian package to depend on curl | wget
...
also give informative error message when neither is available
2022-02-21 17:38:18 +09:00
eugene yokota
c7f2c046b6
Merge pull request #6816 from Nirvikalpa108/fix-6802
...
Fixes parsing command args that include quotes but don't start with them
2022-02-04 14:42:22 -05:00
Amina Adewusi
ca8fd354bd
Fixes parsing command args quote problem
...
Fixes #6802 .
2022-02-04 17:52:39 +00:00
Eugene Yokota
ed022a70ac
sbt 1.6.2
2022-01-31 23:25:20 -05:00
eugene yokota
567fd8b60b
Merge pull request #6808 from eed3si9n/wip/lm
...
[1.6.x] Make License object available
2022-01-31 22:47:04 -05:00
eugene yokota
611b8cf01b
Merge pull request #6807 from eed3si9n/bport/6803
...
[1.6.x] fix: propagate `InterruptedException` from JLine.readLine
2022-01-31 22:11:10 -05:00
Eugene Yokota
761ad14267
Make License object available
...
Fixes #1937
Ref https://github.com/sbt/librarymanagement/pull/395
2022-01-31 22:00:54 -05:00
tpetillot
4f9fe2af64
fix: propagate `InterruptedException` from JLine.readLine
...
Motivation:
Cannot exit from InteractionService.readLine
Modification:
Remove try/catch of InterruptedException mapped to None in JLine.readLine
2022-01-31 21:40:32 -05:00
eugene yokota
50c3cf1082
Merge pull request #6803 from tpetillot/issue-6784-propagate-interrupted-exception-read-line
...
fix: propagate `InterruptedException` from JLine.readLine
2022-01-31 21:39:09 -05:00
eugene yokota
ca0fd3db8c
Merge pull request #6806 from eed3si9n/wip/test_framework
...
[1.6.x] Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError
2022-01-31 17:13:51 -05:00
Eugene Yokota
a549e79c1d
Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError
...
Problem
-------
In some situations like Dotty Community Build, sbt version is
mechanically upgraded on an old commit without humans checking the log.
For reasons we're not completely sure (likely change in ClassLoader
structure) sbt 1.6.x started to fail to load test frameworks during
tests, but since the failure of the test framework loading doesn't fail
the task, this silently succeeded the builds.
Solution
--------
On MatchError and NoClassDefFound Error, rethrow the exception.
Note that ClassNotFoundException is considered ok since we have
predefined test frameworks listed in sbt, which often are not included
in the users' classpath.
2022-01-31 16:37:38 -05:00
Eugene Yokota
f5fb537c6d
sbt 1.6.1
2022-01-31 16:23:00 -05:00
tpetillot
21e5f2dead
fix: propagate `InterruptedException` from JLine.readLine
...
Motivation:
Cannot exit from InteractionService.readLine
Modification:
Remove try/catch of InterruptedException mapped to None in JLine.readLine
2022-01-26 16:24:23 +01:00
eugene yokota
0518ede298
Merge pull request #6799 from Nirvikalpa108/remove-unimplemented-scalacoption
...
Remove scalacoption -S-X
2022-01-21 10:28:23 -05:00
Amina Adewusi
a3610377d4
Remove scalacoption -S-X
...
Fixes https://github.com/sbt/sbt/issues/6785 .
2022-01-21 14:51:11 +00:00
eugene yokota
952546f413
Merge pull request #6794 from eed3si9n/wip/fix
...
Fix test
2022-01-18 00:51:04 -05:00
Eugene Yokota
fb64858053
Fix test
2022-01-17 23:44:38 -05:00
eugene yokota
a53eb471b3
Merge pull request #6790 from xuwei-k/CI-status-badge
...
Update CI status badge in README
2022-01-16 23:42:03 -05:00
kenji yoshida
89991eda69
Update CI status badge in README
2022-01-17 13:27:21 +09:00
eugene yokota
a523fa8662
Merge pull request #6766 from eed3si9n/wip/lazyval
...
Use lazy val
2021-12-28 23:46:25 -05:00
Eugene Yokota
515993498d
Use lazy val
2021-12-28 23:45:04 -05:00
eugene yokota
06a09b03dd
Merge pull request #6765 from eed3si9n/wip/log4j
...
[1.6.x] log4j 2.17.1
2021-12-28 23:40:39 -05:00
Eugene Yokota
d71a1fbdac
log4j 2.17.1
...
Fixes CVE-2021-44832
https://logging.apache.org/log4j/2.x/security.html
2021-12-28 23:07:39 -05:00
Eugene Yokota
43088834d2
sbt 1.6.0
2021-12-26 13:44:22 -05:00
eugene yokota
d4e8d0e4de
Merge pull request #6762 from eed3si9n/wip/bump
...
[1.6.0] Zinc 1.6.0
2021-12-26 02:17:39 -05:00
Eugene Yokota
544a935534
Update banner
2021-12-26 01:48:14 -05:00
gontard
990fa9530f
Ensure sbtConfig argv does not need sbt in PATH
...
Before, the BSP config .bsp/sbt.json generated by `sbt bspConfig`
contained a command line which required the sbt binary in the PATH.
This fix changes the nature of the -Dsbt.script option. It was
an argument of the main class xsbt.boot.Boot, it's now a system
property and thus it's used to launch the sbt server.
Fixes https://github.com/sbt/sbt/issues/6760
2021-12-26 01:47:21 -05:00