Skip to content

Instantly share code, notes, and snippets.

View eed3si9n's full-sized avatar

eugene yokota eed3si9n

View GitHub Profile
[info] Compiling 14 Scala sources to /Users/eed3si9n/work/scala-modules/scala/build/quick/classes/library ...
[error] /Users/eed3si9n/work/scala-modules/scala/src/library/scala/StringContext.scala:272:28: object min is not a member of package math
[error] case s => math.min(s, inputIndex)
[error] ^
[error] /Users/eed3si9n/work/scala-modules/scala/src/library/scala/StringContext.scala:276:28: object max is not a member of package math
[error] case s => math.max(s, inputIndex)
[error] ^
[error] /Users/eed3si9n/work/scala-modules/scala/src/library/scala/collection/Factory.scala:52:52: object max is not a member of package math
[error] val b = new mutable.StringBuilder(scala.math.max(0, it.knownSize))
[error] ^

Compatibility note

As usual for minor releases, Scala 2.12.9 is binary compatible with the whole Scala 2.12 series.

Scala.js users must update to 0.6.28+ or 1.0.0-M8+ for compatibility with Scala 2.12.9. (#7375)

Highlights of 2.12.9

  • Improved compiler performance. Benchmarks of compiler performance have improved by between 5% and 10% since 2.12.8, thanks to many performance optimizations (mostly by Jason Zaugg and Diego E. Alonso-Blas: kudos!)

scala/bug#11635

I have the following project:

https://gitlab.com/cese/adw

that I upgraded from Scala 2.12.7 to 2.12.8. CI/CD in Gitlab now fails with the following exception (full trace provided at the end):

error] 
scala> :paste
// Entering paste mode (ctrl-D to finish)
import language.implicitConversions
class A; class B; class C
implicit def a2b(a: A) = new B
implicit def b2c(b: B) = new C
// Exiting paste mode, now interpreting.
project compilerBridge
++2.13.0-RC2!
set scalaBinaryVersion := "2.13"
set every version := "1.1.7"
set every scalacOptions := Nil
set every isSnapshot := false
publishSigned
sbt:zinc Root> compilerBridge211/compile
[debug] Checking for meta build source updates
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] "not up to date. inChanged = true, force = false
[debug] Updating compilerBridge211...
[debug] Done updating compilerBridge211
[debug] No changes
[debug] Copy resource mappings:
import java.util.{ Locale, Properties }
+import java.time.ZonedDateTime
+import java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME
import sbt.BasicCommandStrings.{ Shell, TemplateCommand }
import sbt.Project.LoadAction
@@ -37,6 +39,7 @@ import scala.util.control.NonFatal
/** This class is the entry point for sbt. */
final class xMain extends xsbti.AppMain {
def run(configuration: xsbti.AppConfiguration): xsbti.MainResult = {
scala> import gigahorse._, support.okhttp.Gigahorse
import gigahorse._
import support.okhttp.Gigahorse
scala> import scala.concurrent._, duration._
import scala.concurrent._
import duration._
scala> import ExecutionContext.Implicits._
import ExecutionContext.Implicits._
Defaults: object Defaults {
scalaHome =
javaBootClassPath =
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/resources.jar
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/rt.jar
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/sunrsasign.jar
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/jsse.jar
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/jce.jar
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/charsets.jar
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/jfr.jar
@eed3si9n
eed3si9n / yql
Created February 15, 2019 08:02
{"query":{"count":1,"created":"2018-05-06T22:49:55Z","lang":"en-US","results":{"channel":{"item":{"condition":{"code":"26","date":"Sun, 06 May 2018 06:00 PM EDT","temp":"16","text":"Cloudy"}}}}}}