Commit Graph

17422 Commits

Author SHA1 Message Date
Eugene Yokota 6564090976 Increase timeout for progress test 2021-09-18 18:45:37 -04:00
Eugene Yokota 8b9cbb3311 Follow up on Scala 2.12.15 bump 2021-09-18 18:08:26 -04:00
Amina Adewusi 505492ed33 Add -Xsource:3 flag
Adding Scala 3 compatible mode for the compilation of build.sbt files.
2021-09-17 18:16:11 +01:00
Roberto Tyley 9786906eca Avoid repeating versions in Eviction error message
Rather than seeing an error like this, with the evicted version numbers
being repeated many times:

```
[error] 	* org.scala-lang.modules:scala-java8-compat_2.13:1.0.0 (early-semver) is selected over {0.9.0, 0.9.0, 0.9.0, 0.9.0, 0.9.1, 0.9.1, 0.9.1}
```

...I'd much rather see an error like this:

```
[error]         * org.scala-lang.modules:scala-java8-compat_2.13:1.0.0 (early-semver) is selected over {0.9.0, 0.9.1}
```
2021-09-17 18:12:13 +01:00
Amina Adewusi c013d1180c Bump scala version to 2.12.15 2021-09-17 17:46:07 +01:00
Eugene Yokota e4f29d37a4 nowarn on TrapExit 2021-09-17 05:14:11 -04:00
Eugene Yokota c31f12d884 JDK 17 2021-09-17 05:02:32 -04:00
eugene yokota 8d10151731
Merge pull request #6656 from Nirvikalpa108/crossSbtVersions/6571
Fix for crossSbtVersions triggering lintBuild
2021-09-12 01:25:28 -04:00
Amina Adewusi ea67d3376b Fix for crossSbtVersions triggering lintBuild
Currently crossSbtVersions is incorrectly generating a warning that it
is an unused setting (see https://github.com/sbt/sbt/pull/5153). This
PR fixes this by adding it to the list of excluded lint keys.

Fixes #6571.
2021-09-12 04:42:01 +01:00
Adrien Piquerez 5f512d9a50
Merge pull request #6642 from hmemcpy/bsp-taskProgress
BSP: implement progress report during compilation
2021-09-11 09:20:26 +02:00
Igal Tabachnik 9986fb6eed Adding a test verifying task progress reports (task start/progress/finish) 2021-09-10 13:06:03 +03:00
Igal Tabachnik 2f589b6713 Extracting progress reporter to own class 2021-09-10 01:02:01 +03:00
Igal Tabachnik f209d0093c BSP tasks report progress during compilation 2021-09-09 23:25:06 +03:00
Adrien Piquerez d197b5b77b
Merge pull request #6638 from hmemcpy/buildTarget/cleanCache
bsp: Implementing `buildTarget/cleanCache`
2021-09-06 12:25:06 +02:00
Igal Tabachnik 8fe769c41d
Merge branch 'develop' into buildTarget/cleanCache 2021-09-06 11:40:06 +03:00
eugene yokota 384d80b208
Merge pull request #6641 from darabos/darabos-fix-double-slash
Fix for realpathish in top-level directories
2021-09-05 12:15:48 -04:00
eugene yokota 776fb8b786
Merge pull request #6649 from eed3si9n/wip/cast
Fix ClassCastException
2021-09-05 10:55:58 -04:00
Eugene Yokota 39bcfee937 Fix ClassCastException
Ref #6592
When there's an issue like timeout, currently it throws a
ClassCastException because I made some assumption about the underlying
error. This removes the unnecessary casting.
2021-09-05 01:02:37 -04:00
Daniel Darabos 41c4bdfef1 Fix for realpathish /root returning //root. 2021-08-28 15:53:39 +02:00
Igal Tabachnik 20fcab4651 Ensuring both "Rebuild Project" and "Rebuild module" work from IntelliJ 2021-08-28 13:50:12 +03:00
Igal Tabachnik a920693c96 Checking for target .class files present and absent before and after cleanCache 2021-08-27 17:46:41 +03:00
Igal Tabachnik c55880d795 Implementing `buildTarget/cleanCache` to support Rebuild operations from IntelliJ 2021-08-27 17:46:41 +03:00
Eric Peters 4dcae2cb73 Add --sbt-cache argument and update localCacheDirectory key description 2021-08-21 07:35:09 -07:00
eugene yokota a199875e1d
Merge pull request #6630 from Nirvikalpa108/timings-help-bug 2021-08-21 06:39:39 -04:00
Amina Adewusi 3c9826f4f4 Fixes shutdown hook error in timing report
This fixes the closed channel exception generated when running
sbt -timings help. This bug was introduced in sbt 1.4 where a wrapper
was created (Terminal.scala) around the terminal. This meant that the
shutdown hook which had been used previously was no longer working.

This has been fixed by avoiding the use of the JVM shutdown hook and
instead manually running the thunk at a place in the code where
the programme is still able to respond.
2021-08-20 17:45:14 +01:00
eugene yokota fb33493969
Merge pull request #385 from P3trur0/patch-1
typo fixed.
2021-08-15 17:04:54 -04:00
Ubaldo Pescatore f0aa5d312e
typo fixed. 2021-08-12 17:21:07 +02:00
eugene yokota 2a26e81868
Merge pull request #6616 from sbt/dependabot/github_actions/olafurpg/setup-scala-13
Bump olafurpg/setup-scala from 12 to 13
2021-08-09 10:25:02 -04:00
dependabot[bot] db0465e881
Bump olafurpg/setup-scala from 12 to 13
Bumps [olafurpg/setup-scala](https://github.com/olafurpg/setup-scala) from 12 to 13.
- [Release notes](https://github.com/olafurpg/setup-scala/releases)
- [Commits](https://github.com/olafurpg/setup-scala/compare/v12...v13)

---
updated-dependencies:
- dependency-name: olafurpg/setup-scala
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-09 04:03:01 +00:00
eugene yokota 8586e19f62
Merge pull request #6611 from Nirvikalpa108/remote-cache-again
Virtualize Sync.sync so it can be cached remotely for resources dir syncing
2021-07-31 14:56:29 -04:00
eugene yokota 60890eb7d9
Update main-actions/src/main/scala/sbt/Sync.scala 2021-07-31 14:22:25 -04:00
eugene yokota 7efbbf2f34
Update main-actions/src/main/scala/sbt/Sync.scala 2021-07-31 14:07:25 -04:00
Amina Adewusi 696a19f5d7 Virtualize Sync.sync so it can be cached remotely for resources dir syncing
An alternative to https://github.com/sbt/sbt/pull/6554.
2021-07-31 18:23:30 +01:00
eugene yokota 47117020ab
Merge pull request #6605 from ScalaWilliam/more-verbose-server-exception
Building on #6353 to help identify the issue of #6101 for Windows users.
2021-07-31 13:15:34 -04:00
eugene yokota 4f18f7473f
Merge pull request #6609 from adpi2/bsp-resilience
Make BSP requests robust to some target failures
2021-07-30 09:35:51 -04:00
Adrien Piquerez 120ccccaab Make BSP requests robust to some target failures
The request of the form buildTarget/* often take a sequence of build
targets as parameter. So far if there is an error on a single build
target, the entire request fails.
This is not the best because the client wants the result of the other
build targets anyway:
For example:
- workspace/buildTargets: if one build target has an invalid Scala
version we still want to import the other ones
- buildTarget/scalacOptions: if a dependency cannot be resolved we still
want to import the build targets that do not depend on it
- buildTarget/scalaMainClasses: if buildTarget does not compile we still
want the main classes of the other targets
...

The change is to respond to BSP requests with the successful
build targets and  to ignore the failed ones.
This is implemented the same in Bloop since before BSP in sbt.

In  https://github.com/build-server-protocol/build-server-protocol/issues/204,
I made a proposal to also add the failed build targets in the response.
2021-07-30 14:41:00 +02:00
eugene yokota 31a04c9968
Merge pull request #6573 from github-samuel-clarenc/bspStartTry
[BSP] Send information when server process fails
2021-07-28 12:53:50 -04:00
Alexandre Archambault 15c1480d22
Merge pull request #357 from alexarchambault/develop
Update GitHub actions
2021-07-27 10:46:53 +02:00
Alexandre Archambault 4d5b4c2e26 Update coursier/cache-action GitHub action 2021-07-27 00:45:39 +02:00
Alexandre Archambault f7507b7a38 Use coursier/setup-action 2021-07-26 23:56:22 +02:00
Alexandre Archambault 05bebd7927 Enable dependabot updates for GitHub actions 2021-07-26 23:48:05 +02:00
Scala Steward 6adbc239de
Update sbt-ci-release to 1.5.7 (#334) 2021-07-26 23:45:47 +02:00
Samuel CLARENC e3f2371655
Merge branch 'develop' into bspStartTry 2021-07-26 16:12:41 +02:00
eugene yokota a0bb13cd66
Merge pull request #6576 from github-samuel-clarenc/bspProcessServerJavaHome 2021-07-26 09:04:32 -04:00
Samuel CLARENC 964c1cbaa4 Use java home to launch BSP server 2021-07-26 11:40:53 +02:00
Samuel CLARENC 0be658d299
Merge branch 'develop' into bspStartTry 2021-07-26 09:30:28 +02:00
Samuel CLARENC 5cdec34beb Add a Try around process execution 2021-07-26 09:30:08 +02:00
William Narmontas febccde3e7 Building on #6353 to help identify the issue of #6101 for Windows users. 2021-07-24 19:59:00 +01:00
eugene yokota ab05465ef4
Merge pull request #6593 from adpi2/fix-6575
Use `-Dsbt.script` to start sbt server
2021-07-22 12:09:35 -04:00
Adrien Piquerez 966633aa81 Fix duplicated -Dsbt.script 2021-07-22 09:17:22 +02:00