Commit Graph

17847 Commits

Author SHA1 Message Date
eugene yokota 5bd44058ef
Update --feature-request.md 2022-08-31 16:07:11 -04:00
eugene yokota 28850ace5a
Merge pull request #7011 from sbt/dependabot/github_actions/actions/cache-3.0.8
Bump actions/cache from 3.0.7 to 3.0.8
2022-08-29 00:49:24 -04:00
dependabot[bot] 6ef9d5d244
Bump actions/cache from 3.0.7 to 3.0.8
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.7 to 3.0.8.
- [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.7...v3.0.8)

---
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-08-29 04:07:24 +00:00
eugene yokota a5a997eab6
Merge pull request #7006 from ckipp01/moreDiagnosticCode
fix: also include diagnosticCode and related info in InterfaceUtil
2022-08-23 09:51:53 -04:00
Chris Kipp 77673eef55 fix: also include diagnosticCode and related info in InterfaceUtil
Looks like I missed this in https://github.com/sbt/sbt/pull/6874 and I
hit on it in Mill when I couldn't figure out why it was also empty, and
thanks to @adpi realized it was because of the `LoggedReporter` in zinc
not taking it into account. However before I can bump that this needs to
be bumped as well.

refs: https://github.com/lampepfl/dotty/issues/14904
2022-08-22 08:37:44 +02:00
Scala Steward 8eadc24d3f
Update sbt-scalafix to 0.10.1 (#407) 2022-08-16 17:40:34 +02:00
Scala Steward f8f3917ba9
Update sbt-shading to 2.1.0 (#409) 2022-08-16 16:40:29 +02:00
Scala Steward 21a7e74710
Update coursier to 2.1.0-M6-53-gb4f448130 (#408) 2022-08-16 16:16:28 +02:00
Alexandre Archambault 4d7c64febe
Merge pull request #403 from alexarchambault/fix-lmcoursier-jni
Ensure lmcoursier can load jniutils stuff fine on Windows
2022-08-15 19:27:09 +02:00
Alexandre Archambault 82bd9a10dd Ensure lmcoursier can load jniutils stuff fine on Windows 2022-08-15 18:24:42 +02:00
Alexandre Archambault 87225ad1bf Use newer coursier/setup-action
That pulls coursier > 2.1.0-M5, that has coursier/coursier#2375
2022-08-15 18:24:41 +02:00
Scala Steward e177ebec6a
Update sbt, scripted-plugin to 1.7.1 (#397)
* Applied Scalafix rule(s) 7f576f16a9/Sbt0_13BuildSyntax.scala

See https://eed3si9n.com/syntactic-scalafix-rule-for-unified-slash-syntax for details

* Update sbt, scripted-plugin to 1.7.1

* fix scalafix stuff

Co-authored-by: Alexandre Archambault <alexandre.archambault@gmail.com>
2022-08-15 16:32:00 +02:00
Alexandre Archambault d0af20e3cd
Remove now deprecated sbt launcher script (#406) 2022-08-15 16:00:07 +02:00
Alexandre Archambault 9aa5887d6d
Merge pull request #400 from eed3si9n/wip/scalafix
Use dataclass-scalafix for code gen
2022-08-15 12:40:10 +02:00
Alexandre Archambault 1f4283ceb7 Merge branch 'master' into wip/scalafix
Conflicts:
	build.sbt
2022-08-15 11:02:28 +02:00
Scala Steward 8196655794
Update data-class to 0.2.6 (#405) 2022-08-15 10:55:42 +02:00
Adrien Piquerez fd62debc47
Merge pull request #7004 from sbt/dependabot/github_actions/actions/cache-3.0.7
Bump actions/cache from 3.0.6 to 3.0.7
2022-08-15 10:20:34 +02:00
dependabot[bot] 6cafc89574
Bump actions/cache from 3.0.6 to 3.0.7
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.6 to 3.0.7.
- [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.6...v3.0.7)

---
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-08-15 04:02:16 +00:00
Eugene Yokota 5939266233 Convert to slash syntax 2022-08-13 22:16:40 -04:00
Eugene Yokota e8b2a198fb Use dataclass-scalafix for code gen
This uses https://github.com/hamnis/dataclass-scalafix.
2022-08-13 22:01:29 -04:00
Eugene Yokota 25ea593d42 Fix test prep step 2022-08-13 22:00:52 -04:00
Eugene Yokota d1a5206484 Ignore metals files 2022-08-12 14:23:29 -04:00
Eugene Yokota 22bac78b34 Move out custom methods in data-classes to syntax package
These are mostly unused, so we might be able to get rid of them too eventually?
2022-08-12 14:23:29 -04:00
Eugene Yokota ca6704b6b0 Move out data classes to its own subproject 2022-08-12 14:23:29 -04:00
Eugene Yokota db3810551d Refactor build
Deduplicate lm-ivy selection to an ad-hoc setting.
2022-08-12 14:23:27 -04:00
Alexandre Archambault f3a28b97b7
Merge pull request #404 from alexarchambault/sbt-1.5.6
Update sbt to 1.5.6
2022-08-12 20:15:54 +02:00
Alexandre Archambault 117ff375b9 Ignore scala-xml version mismatch in 2.13
Hope this isn't a problem downstream…
2022-08-12 17:57:37 +02:00
Alexandre Archambault f73ea018ed Revert "Update scala-xml to 2.1.0 (#387)"
This reverts commit 18a72e4975.
2022-08-12 17:44:13 +02:00
Alexandre Archambault 240725e35f Update sbt to 1.5.6 2022-08-12 17:31:51 +02:00
Alexandre Archambault 8501e265b5
Merge pull request #401 from alexarchambault/sbt-mainline
Use mainline sbt launcher on CI
2022-08-12 17:24:31 +02:00
Alexandre Archambault b587076320 Address deprecation warning 2022-08-12 14:51:31 +02:00
Alexandre Archambault c89ba1c4ff Remove unused script 2022-08-12 14:51:31 +02:00
Alexandre Archambault a301c86d6d Use mainline sbt launcher on CI 2022-08-12 14:51:31 +02:00
Alexandre Archambault 9ac7e77c1c
Update coursier to 2.1.0-M6-49-gff26f8e39 (#402) 2022-08-12 14:48:39 +02:00
dependabot[bot] c82bb68a1e
Bump actions/checkout from 2 to 3 (#385)
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 12:20:13 +02:00
Alexandre Archambault 890efe1619
Update coursier to 2.1.0-M6-28-gbad85693f (#392) 2022-08-12 11:58:04 +02:00
Eugene Yokota f9453d67c6 Temporarily fork to org.scala-sbt 2022-08-12 00:43:36 -04:00
Eugene Yokota cf98ce2ee0 Scala 3 support 2022-08-12 00:14:58 -04:00
Eugene Yokota b807671ec5 Downgrade scala-xml to _2.13 on Scala 3
Since Coursier doesn't have Scala 3 artifacts yet, downgrade scala-xml
so we can use for3Use2_13.
2022-08-11 23:40:40 -04:00
Eugene Yokota 58912ff8f6 Use dataclass-scalafix for code gen
This is a prepration step for Scala 3 support.
Instead of data-class, this uses
https://github.com/hamnis/dataclass-scalafix.

Since it cannot use `withX` method in the data class itself with this
approach, I created `syntax` package object to extend some methods to
the generated classes.
2022-08-11 23:23:16 -04:00
eugene yokota 3b12ebcf98
Merge pull request #7002 from eed3si9n/fport/1.7.x
Merge 1.7.x commits to develop
2022-08-10 23:34:33 -04:00
Eugene Yokota bbc91a4788 Merge branch '1.7.x' into fport/1.7.x 2022-08-10 21:53:50 -04:00
eugene yokota e05acf9ca1
Merge pull request #6999 from eed3si9n/bport/6994
[1.8.x] add output when boot server socket fails to create
2022-08-10 20:46:47 -04:00
eugene yokota 5abb51f3ef
Merge pull request #7001 from eed3si9n/bport/6998
[1.7.x] feat: start forwarding diagnosticCode via BSP
2022-08-10 20:34:39 -04:00
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
Devin Fisher 9f9b08edbd refactor printing error to an in-function function 2022-08-10 10:08:49 -04:00
Devin Fisher 5874ad920e add output when book server socket fails to create 2022-08-10 10:08:42 -04:00
eugene yokota 2d00c693b7
Merge pull request #6994 from devin-fisher/develop
add output when boot server socket fails to create
2022-08-10 10:06:07 -04:00
eugene yokota ab59e4c6ba
Merge pull request #6998 from ckipp01/captureCodeBsp
feat: start forwarding diagnosticCode via BSP
2022-08-10 10:03:40 -04:00
Chris Kipp 15a45cb3c0 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-09 19:02:52 +02:00