Commit Graph

11602 Commits

Author SHA1 Message Date
Chris Kipp 92a9f0e583 feat: start forwarding diagnosticCode via BSP
This change is a continuation of the work that was done in
https://github.com/sbt/sbt/pull/6874 to allow the Scala 3 compiler to
forward the `diagnosticCode` of an error as well as the other normal
things. This change in dotty was merged in
https://github.com/lampepfl/dotty/pull/15565 and also backported so it
will be in the 3.2.x series release. This change captures the
`diagnosticCode` and forwards it on via BSP so that tools like Metals
can can use this code.

You can see this in the BSP trace now for a diagnostic:

For example with some code that contains the following:

```scala
val x: Int = "hi"
```

You'll see the code in the BSP diagnostic:
```  "diagnostics": [
    {
      "range": {
        "start": {
          "line": 9,
          "character": 15
        },
        "end": {
          "line": 9,
          "character": 19
        }
      },
      "severity": 1,
      "code": "7",
      "source": "sbt",
      "message": "Found:    (\u001b[32m\"hi\"\u001b[0m : String)\nRequired: Int\n\nThe following import might make progress towards fixing the problem:\n\n  import sourcecode.Text.generate\n\n"
    }
  ]
```

Co-authored-by: Adrien Piquerez <adrien.piquerez@gmail.com>
Refs: https://github.com/lampepfl/dotty/issues/14904
2022-08-10 10:12:54 -04:00
eugene yokota 1f29c9053c
Merge pull request #6977 from sbt/dependabot/github_actions/actions/cache-3.0.5
Bump actions/cache from 3.0.4 to 3.0.5
2022-07-18 01:19:16 -04:00
dependabot[bot] 683f2e9291
Bump actions/cache from 3.0.4 to 3.0.5
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.4...v3.0.5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 04:02:58 +00:00
Adrien Piquerez 992dfd5649
Merge pull request #6972 from adpi2/dependency-submission-v2
Bump sbt-dependency-submission
2022-07-15 13:03:56 +02:00
Adrien Piquerez 8dba607ed8 Bump sbt-dependency-submission
Fix the build on 2.13.8 to submit the corresponding graphs:
Remove 2.13.8 in the crossScalaVersions of sbt-dependency-graph
scripted-sbt-redux and scripted-sbt because they
depend on sbtProj.
2022-07-15 11:07:33 +02:00
Eugene Yokota 38125c5347 sbt 1.7.1 2022-07-11 23:43:06 -04:00
eugene yokota ffdce15f87
Merge pull request #6970 from eed3si9n/wip/bump-zinc
Update Zinc to 1.7.1
2022-07-11 23:17:11 -04:00
Eugene Yokota 106bc89e06 Update Zinc to 1.7.1 2022-07-11 22:54:42 -04:00
eugene yokota ebcb1976f6
Merge pull request #6968 from eed3si9n/wip/1.7.0
Use sbt 1.7.0
2022-07-11 00:09:59 -04:00
Eugene Yokota fcee055a8c Use sbt 1.7.0 2022-07-10 23:50:06 -04:00
Eugene Yokota 79ea2bdaf2 sbtn 1.7.0 2022-07-10 15:43:25 -04:00
Eugene Yokota 4f38bcbd03 sbt 1.7.0 2022-07-10 15:21:21 -04:00
eugene yokota 08e9861e39
Merge pull request #6966 from eed3si9n/wip/bump-zinc
Update Zinc to 1.7.0
2022-07-10 14:40:33 -04:00
Eugene Yokota 2d27e6deea Update Zinc to 1.7.0 2022-07-10 13:55:14 -04:00
eugene yokota d096e716d0
Merge pull request #6965 from eed3si9n/wip/available
Fix proxyInputStream#available
2022-07-10 05:01:47 -04:00
Eugene Yokota 2462d5fbcf Fix proxyInputStream#available
proxyInputStream does not override available,
which broke sbt-site previewSite.
This fixes that.
2022-07-10 04:35:57 -04:00
eugene yokota 7dc4378fdf
Merge pull request #6963 from eed3si9n/wip/bump-io
IO 1.7.0
2022-07-10 04:00:28 -04:00
Eugene Yokota 6788c2e1ca IO 1.7.0 2022-07-10 03:40:58 -04:00
eugene yokota 8aae00fb42
Merge pull request #6960 from adpi2/dependency-graph
Add dependency-graph workflow
2022-07-08 10:32:38 -04:00
eugene yokota d76b909417
Merge pull request #6962 from xuwei-k/remove-sbt-dotty
remove sbt-dotty in tests
2022-07-08 10:29:48 -04:00
xuwei-k 87bd79e538 remove sbt-dotty 2022-07-08 15:04:47 +09:00
Adrien Piquerez 321ae96847 Add dependency-graph workflow 2022-07-07 11:15:14 +02:00
eugene yokota dd9a6ff90e
Merge pull request #6952 from sbt/eed3si9n-patch-1
Update badges
2022-07-04 11:12:14 -04:00
eugene yokota c36145fccd
Update badges 2022-07-04 11:11:49 -04:00
eugene yokota 29239ade8a
Merge pull request #6951 from xuwei-k/enable-more-tests
enable some scripted tests
2022-07-04 10:50:49 -04:00
xuwei-k 7e68572b10 enable some scripted tests 2022-07-04 13:06:08 +09:00
eugene yokota a03d63d822
Merge pull request #6949 from xuwei-k/enable-some-tests 2022-07-03 10:45:40 -04:00
eugene yokota c41426814e
Merge pull request #6950 from xuwei-k/whitesource 2022-07-03 10:44:42 -04:00
eugene yokota 80984dbef2
Merge pull request #6948 from xuwei-k/enable-source-plugins-test 2022-07-03 10:44:02 -04:00
xuwei-k 9c8e99c390 remove sbt-whitesource 2022-07-03 14:45:23 +09:00
xuwei-k 72bfa5e3c8 enable some scripted tests 2022-07-03 14:26:18 +09:00
xuwei-k d98074e358 enable project/source-plugins test 2022-07-03 12:54:56 +09:00
Eugene Yokota d1ea1f27e6 1.7.0-RC2 2022-07-02 19:59:55 -04:00
eugene yokota aad0464138
Merge pull request #6947 from eed3si9n/wip/banner
Banner
2022-07-02 19:20:11 -04:00
Eugene Yokota 31a6c60df3 Banner 2022-07-02 19:07:34 -04:00
eugene yokota f9b8121d2e
Merge pull request #6946 from eed3si9n/wip/cross_fix
Remove compatibility check from ++
2022-07-02 18:59:02 -04:00
Eugene Yokota 05d3d8689b Remove compatibility check from ++
Problem
-------
Since sbt-doge merger `++ <sv> <command1>` has used binary compatibility
as a test to select subproject, but it causes surprising situations like
sbt/sbt#6915, and it blurs the responsibility of YAML file and build
file as the version specified in the version can override the Scala
version test on local laptop.

Solution
--------
This removes the compatibiliy check (backward-only or otherwise),
and require that `<sv>` match one of `crossScalaVersions` using the new
Semantic Version selector pattern.
2022-07-02 18:38:04 -04:00
eugene yokota 6d0ef2093d
Merge pull request #6943 from raboof/more-appropriate-error-when-no-versions-match
Show a more appropriate message when no Scala versions matches
2022-06-28 09:26:06 -04:00
Arnout Engelen 697e3bce51
Show a more appropriate message when no Scala versions matches
When switching scala versions with a wildcard, and no subproject
has a matching version to switch to, show a more appropriate error
message
2022-06-28 14:43:06 +02:00
eugene yokota 789ca334d7
Merge pull request #6942 from raboof/more-useful-logging-for-flexible-version-switch 2022-06-28 07:52:54 -04:00
Arnout Engelen 6a79bdb461
Show a more useful log message when doing a flexible version switch
Suggested by @SethTisue in https://github.com/sbt/sbt/pull/6894#issuecomment-1168042209

Will show multiple lines when different versions are selected for different subprojects.

When no subprojects have a matching Scala version you will get a
'Switch failed' exception anyway, so in that case there is no
change in behavior.
2022-06-28 07:59:13 +02:00
Eugene Yokota 498493599f 1.7.0-RC1 2022-06-27 04:08:31 -04:00
Eugene Yokota bec2be707a Fix sbtn building 2022-06-27 03:09:43 -04:00
eugene yokota 7cc6ad3d00
Merge pull request #6939 from eed3si9n/wip/cross-fix
[1.7.x] Filter incompatible Scala 3 projects in cross switch commands, take 2
2022-06-27 00:08:29 -04:00
eugene yokota 910ab1951f
Merge pull request #6846 from Nirvikalpa108/fix-deadlock
[1.7.x] Attempts to fix sbt#6810 - deadlock issue
2022-06-26 22:50:22 -04:00
Rui Gonçalves 705d3d58ce Filter incompatible Scala 3 projects in cross switch commands 2022-06-26 22:46:37 -04:00
eugene yokota c975982b41
Merge pull request #6938 from eed3si9n/wip/ipcsocket-1.5.0
[1.7.x] ipcsocket 1.5.0
2022-06-26 15:07:24 -04:00
Eugene Yokota 0598c9fdc1 ipcsocket 1.5.0
This bumps to ipcsocket 1.5.0, which fixes the temp directory cleanup
bug.
Fixes https://github.com/sbt/sbt/issues/6931
Fixes https://github.com/sbt/sbt/issues/6173
2022-06-26 14:37:12 -04:00
eugene yokota f9609bfc1a
Merge pull request #6937 from eed3si9n/wip/graal
[1.7.x] Build Graal native image using sbt-native-image
2022-06-26 14:32:45 -04:00
Eugene Yokota 21e5838cfd Build Graal native image using sbt-native-image 2022-06-26 13:25:58 -04:00