From cb910d93f049d44fca7ef3942cb59c35f7cf96c7 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 23 Aug 2023 15:44:14 -0700 Subject: [PATCH 1/6] Scala 2.13.12 release notes draft --- releases/2.13.12.md | 64 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 releases/2.13.12.md diff --git a/releases/2.13.12.md b/releases/2.13.12.md new file mode 100644 index 0000000000..0b3daac218 --- /dev/null +++ b/releases/2.13.12.md @@ -0,0 +1,64 @@ +# Scala 2.13.12 (DRAFT) + +The Scala team at Lightbend is pleased to announce Scala 2.13.12. + +The following changes are highlights of this release: + +### Feature: Quickfixes + +For some errors and warnings, the compiler now suggests an edit that could fix the issue. Tooling such as IDEs can then offer the edits, or the compiler itself will make the change if run again with `-quickfix`. + +* Implement quickfixes, aka actionable diagnostics (via `CodeAction`) ([#10406](https://github.com/scala/scala/pull/10406) by [@eed3si9n](https://github.com/eed3si9n)) +* Add `-quickfix` compiler option to apply quickfixes to source files ([#10482](https://github.com/scala/scala/pull/10482) by [@lrytz](https://github.com/lrytz)) +* Add quickfixes to some warnings and errors ([#10484](https://github.com/scala/scala/pull/10484) by [@lrytz](https://github.com/lrytz)) + +### Align with Scala 3 + +* Emit migration warnings under `-Xsource:3` as fatal warnings, not errors; `-Xmigration` disables fatality ([#10439](https://github.com/scala/scala/pull/10439) by [@som-snytt](https://github.com/som-snytt)) +* Warn about `@elidable` under `-Xsource:3` ([#10377](https://github.com/scala/scala/pull/10377) by [@som-snytt](https://github.com/som-snytt)) + +### Collections + +* `IndexedSeq#head` now throws `NoSuchElementException` (not `IndexOutOfBoundsException`) ([#10392](https://github.com/scala/scala/pull/10392) by [@som-snytt](https://github.com/som-snytt)) + +### Regression fixes + +* Deduplicate `JavaDeprecatedAttr` in `ClassfileParser` ([#10422](https://github.com/scala/scala/pull/10422) by [@som-snytt](https://github.com/som-snytt)) +* Avoid brittle flags encoding for Java enums ([#10424](https://github.com/scala/scala/pull/10424) by [@som-snytt](https://github.com/som-snytt)) + +### Tooling + +The following change is mainly of concern to tooling maintainers. + +* In-source sbt compiler bridge ([#10472](https://github.com/scala/scala/pull/10472) by [@lrytz](https://github.com/lrytz)) + +### Other notable changes + +For the complete 2.13.12 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.12) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.13.12). + +## Compatibility + +As usual for our minor releases, Scala 2.13.12 is [binary-compatible](https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html) with the whole Scala 2.13 series. + +Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration advice from the compiler. + +## Contributors + +A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent. + +This release was brought to you by 12 contributors, according to `git shortlog -sn --no-merges @ ^v2.13.11 ^2.12.x ^366ba2f`. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Scala Steward, Michel Davit, Nicolas Stucki, Alex Leigh, Eugene Yokota, Georgi Krastev, Jamie Willis, Julien Richard-Foy, NthPortal. + +Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) for Scala. + +## Scala 2.13 notes + +The [release notes for Scala 2.13.0](https://github.com/scala/scala/releases/v2.13.0) have important information applicable to the whole 2.13 series. + +## Obtaining Scala + +Scala releases are available through a variety of channels, including (but not limited to): + +* Bump the `scalaVersion` setting in your sbt project +* Bump the `using scala` setting in your Scala-CLI project +* Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.11.html) +* Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.11) From 0314ac529a87b677a5466f0abf86c5c4e10f095c Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 23 Aug 2023 15:55:55 -0700 Subject: [PATCH 2/6] wip --- releases/2.13.12.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/2.13.12.md b/releases/2.13.12.md index 0b3daac218..0cfeace62a 100644 --- a/releases/2.13.12.md +++ b/releases/2.13.12.md @@ -46,6 +46,8 @@ Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration a A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent. +We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for a large share of the improvements in this release. + This release was brought to you by 12 contributors, according to `git shortlog -sn --no-merges @ ^v2.13.11 ^2.12.x ^366ba2f`. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Scala Steward, Michel Davit, Nicolas Stucki, Alex Leigh, Eugene Yokota, Georgi Krastev, Jamie Willis, Julien Richard-Foy, NthPortal. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) for Scala. From 5fbd65312dcdac146ecdced8f424cfc423e043bf Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 23 Aug 2023 19:34:13 -0700 Subject: [PATCH 3/6] Update releases/2.13.12.md Co-authored-by: kenji yoshida <6b656e6a69@gmail.com> --- releases/2.13.12.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/2.13.12.md b/releases/2.13.12.md index 0cfeace62a..10bc518742 100644 --- a/releases/2.13.12.md +++ b/releases/2.13.12.md @@ -62,5 +62,5 @@ Scala releases are available through a variety of channels, including (but not l * Bump the `scalaVersion` setting in your sbt project * Bump the `using scala` setting in your Scala-CLI project -* Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.11.html) -* Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.11) +* Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.12.html) +* Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.12) From 973c96ac102e16444da2662282caa383055b0cff Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 23 Aug 2023 19:35:26 -0700 Subject: [PATCH 4/6] put Scala CLI first --- releases/2.13.12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/2.13.12.md b/releases/2.13.12.md index 10bc518742..eb0158e913 100644 --- a/releases/2.13.12.md +++ b/releases/2.13.12.md @@ -60,7 +60,7 @@ The [release notes for Scala 2.13.0](https://github.com/scala/scala/releases/v2. Scala releases are available through a variety of channels, including (but not limited to): +* Bump the `using scala` setting in your Scala CLI project * Bump the `scalaVersion` setting in your sbt project -* Bump the `using scala` setting in your Scala-CLI project * Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.12.html) * Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.12) From c9b36210b5af96d644cae40eacfce037bedefdee Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 24 Aug 2023 19:35:20 -0700 Subject: [PATCH 5/6] mill --- releases/2.13.12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/2.13.12.md b/releases/2.13.12.md index eb0158e913..afbc20e219 100644 --- a/releases/2.13.12.md +++ b/releases/2.13.12.md @@ -61,6 +61,6 @@ The [release notes for Scala 2.13.0](https://github.com/scala/scala/releases/v2. Scala releases are available through a variety of channels, including (but not limited to): * Bump the `using scala` setting in your Scala CLI project -* Bump the `scalaVersion` setting in your sbt project +* Bump the `scalaVersion` setting in your sbt or Mill project * Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.12.html) * Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.12) From 8df92a4a2ef782e608192c07c26eed5ea632cc77 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 30 Aug 2023 13:49:49 -0700 Subject: [PATCH 6/6] tweak --- releases/2.13.12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/2.13.12.md b/releases/2.13.12.md index afbc20e219..b3a2fd9ae1 100644 --- a/releases/2.13.12.md +++ b/releases/2.13.12.md @@ -14,7 +14,7 @@ For some errors and warnings, the compiler now suggests an edit that could fix t ### Align with Scala 3 -* Emit migration warnings under `-Xsource:3` as fatal warnings, not errors; `-Xmigration` disables fatality ([#10439](https://github.com/scala/scala/pull/10439) by [@som-snytt](https://github.com/som-snytt)) +* Emit migration warnings under `-Xsource:3` as fatal warnings, not errors; `-Xmigration` disables fatality ([#10439](https://github.com/scala/scala/pull/10439) by [@som-snytt](https://github.com/som-snytt), [#10511](https://github.com/scala/scala/pull/10511)) * Warn about `@elidable` under `-Xsource:3` ([#10377](https://github.com/scala/scala/pull/10377) by [@som-snytt](https://github.com/som-snytt)) ### Collections