Skip to content

Instantly share code, notes, and snippets.

View eed3si9n's full-sized avatar

eugene yokota eed3si9n

View GitHub Profile
@eed3si9n
eed3si9n / sbt.log
Created October 17, 2019 23:14
Cygwin issue
$ sbt
[info] Loading settings for project global-plugins from foo.sbt ...
[info] Loading global plugins from C:\Users\eed3si9n\.sbt\1.0\plugins
[info] Loading project definition from C:\cygwin64\home\eed3si9n\work\hello\project
[info] Compiling 1 Scala source to C:\cygwin64\home\eed3si9n\work\hello\project\target\scala-2.12\sbt-1.0\classes ...
[info] Done compiling.
[info] Loading settings for project root from build.sbt ...
[info] Set current project to Hello (in build file:/C:/cygwin64/home/eed3si9n/work/hello/)
[error] java.io.IOException: Could not create directory C:\cygwin64\home\eed3si9n\work\hello\target\streams\_global\_global\checkBuildSources\_global\inputFileStamps: java.nio.file.AccessDeniedException: C:\cygwin64\home\eed3si9n\work\hello\target\streams\_global\_global\checkBuildSources\_global
[error] Use 'last' for the full log.
@eed3si9n
eed3si9n / build.sbt
Created October 14, 2019 03:44
-Yno-lub testing
import Util._
import Dependencies._
import Sxr.sxr
import com.typesafe.tools.mima.core._, ProblemFilters._
import local.Scripted
import scala.xml.{ Node => XmlNode, NodeSeq => XmlNodeSeq, _ }
import scala.xml.transform.{ RewriteRule, RuleTransformer }
import scala.util.Try
ThisBuild / version := {
sbt new lampepfl/dotty.g8
Copying runtime jar.
[info] [launcher] getting org.scala-sbt sbt 1.3.2 (this may take some time)...
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.3.2/sbt-1.3.2.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/io_2.12/1.3.1/io_2.12-1.3.1.jar ...
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.10/scala-library-2.12.10.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/main_2.12/1.3.2/main_2.12-1.3.2.jar ...
:: loading settings :: url = jar:file:/root/.sdkman/candidates/sbt/1.3.2/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: loading settings :: url = jar:file:/root/.sdkman/candidates/sbt/1.3.2/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: loading settings :: url = jar:file:/root/.sdkman/candidates/sbt/1.3.2/bin/sbt-launch.jar!/org/apache/ivy/core/settings/ivysettings.xml
sbt:foo> pgp-cmd gen-key
Please enter the name associated with the key: foo
Please enter the email associated with the key: [email protected]
Please enter the passphrase for the key: ****
Please re-enter the passphrase for the key: ****
[info] Creating a new PGP key, this could take a long time.
[info] Public key := /home/demiourgos1/.sbt/gpg/pubring.asc
[info] Secret key := /home/demiourgos1/.sbt/gpg/secring.asc
[info] Please do not share your secret key. Your public key is free to share.
[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: