search term:

sbt 1.9.3

Hi everyone. On behalf of the sbt project, I’m happy to announce sbt 1.9.3 patch release is available. Full release note is here - https://github.com/sbt/sbt/releases/tag/v1.9.3

See 1.9.0 release note for the details on 1.9.x features.

Highlights

How to upgrade

Download the official sbt runner from SDKMAN or download from https://github.com/sbt/sbt/releases/tag/v1.9.3 to upgrade the sbt shell script and the launcher:

$ sdk install sbt 1.9.3
$ sdk upgrade sbt # or upgrade

The sbt version used for your build is upgraded by putting the following in project/build.properties:

sbt.version=1.9.3

This mechanism allows that sbt 1.9.3 is used only for the builds that you want.

Actionable diagnostics (aka quickfix)

Actionable diagnostics, or quickfix, is one of areas in Scala tooling taht’s been getting attention since Chris Kipp presented it in the March 2023 Tooling Summit. Chris has written the roadmap and sent sbt/sbt#7242 that kick started the effort, but now there’s been steady progress in Build Server Protocol, Dotty, Scala 2.13, IntelliJ, Zinc, etc. Metals 1.0.0, for example, is now capable of surfacing code actions as a quickfix.

code action

sbt 1.9.3 adds a new interface called AnalysisCallback2 to relay code actions from the compiler(s) to Zinc’s Analysis file. Future version of Scala 2.13.x (and hopefully Scala 3) will release with proper code actions, but as a demo I’ve implemented a code action for procedure syntax usages even on current Scala 2.13.11 with -deprecation flag. You can try this with Metals 1.0.0 + using sbt as Metals build server:

This was contributed by Eugene Yokota in zinc#1226. Special thanks to @lrytz for identifying this issue in zinc#1214.

other updates

Participation

Thanks to everyone who’s helped improve sbt and Zinc by using them, reporting bugs, improving our documentation, porting builds, porting plugins, and submitting and reviewing pull requests.

For anyone interested in helping sbt, there are many avenues for you to help, depending on your interest. If you’re interested, Contributing, “help wanted”, “good first issue”, and Discussions are good starting points.


🏳️‍🌈 Support Ukraine 🇺🇦

Forbidden Colours has started a fundraising campaign to support organisations in Poland, Hungary and Romania that are welcoming LGBTIQ+ refugees.

https://www.forbidden-colours.com/2022/02/26/support-ukrainian-lgbtiq-refugees/

Scala Center is a non-profit center at EPFL to support education and open source.