Scala sbt 1.2.3 path notes
Hi everyone. sbt 1.2.3 patch release is available.
How to upgrade
project/build.properties as follows:
The sbt launcher will automatically resolve sbt 1.2.3 based on what’s in
However, if you want to resolve sbt 1.2.3 faster, you should use the installers. zip, tgz, and msi installers contain all the JAR files so the resolution completes from the
endOffset fields to
xsbti.Position datatype, which is used to carry compiler warnings between Scala compiler and Zinc. When
-Yrangepos flag is enabled, this enables squiggles to be displayed across the expression in VS Code.
To check this out, first add the following line in
ThisBuild / Compile / scalacOptions += "-Yrangepos"
Before an error message looked like this on VS Code Scala (sbt) plugin:
Using sbt 1.2.3 the squiggle looks like this:
This enhancement was contributed by Guillaume Martres (@smarter) from EPFL Scala team as zinc#580 and util#173 with some follow-up #4354 by @eed3si9n. This will also help Dotty and its IDE support on VS Code, which is planned to be used for CS 210 Functional Programming class at EPFL this Fall semester!
"-Yrangepos" comes with some performance penalty (about 10%) in Scala 2.12.6. There’s a performance improvement planned for 2.12.7.
Other bug fixes and enhancements
- Optimizes Zinc by avoiding regex for a common case zinc#595 by @retronym
- Fixes a typo in “PUT operation failed” error message lm#261 by @Philippus
scalaCompilerBridgeBinaryJartask for Dotty compiler bridge #4332 by @smarter from EPFL Scala team
Thanks to everyone who’s helped improve sbt and Zinc 1 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.
- Help someone at work or online fix their build problem.
- Answer StackOverflow questions.
- Report issues.
- Maintain and update documentation.
- Garden issue tracker.
- Patch the core (send pull requests to code).