-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish scala2-library-tasty-experimental
#19588
Conversation
We need to test this on the open community build before we can merge. @WojciechMazur will tweet the community build scripts to allow testing this. |
I would say that the results in #19588 (comment) look pretty good. There is one failure with the I would argue that this library is stable enough to be published in 3.5 but not used by default. This would allow other libraries/applications that could not be tested with the community build to test it (such as private projects). |
bed2b3f
to
750d7c7
Compare
The project was renamed to |
scala2-library-tasty
scala2-library-tasty-experimental
Now that the project is explicitly identified as experimental we do not need to wait for a minor release. |
750d7c7
to
1f2448c
Compare
This was correctly published for I tested it with
Then modified - val scala3Version = "3.4.0"
+ val scala3Version = "3.4.2-RC1-bin-20240311-02c2a6e-NIGHTLY"
lazy val root = project
.in(file("."))
.settings(
name := "Scala 3 Project Template",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
+ libraryDependencies += "org.scala-lang" %% "scala2-library-tasty-experimental" % scalaVersion.value,
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test
) To check that the TASTy library is loaded I modified @main def hello(): Unit =
+ s"test"
println("Hello world!")
println(msg)
def msg = "I was compiled by Scala 3. :)" Compiling this file with the TASTy library will show a new warning [warn] -- [E129] Potential Issue Warning: ./src/main/scala/Main.scala:2:2
[warn] 2 | s"test"
[warn] | ^^^^^^^
[warn] | A pure expression does nothing in statement position
[warn] |
[warn] | longer explanation available when compiling with `-explain` |
Similar to #19588. We will start publishing `org.scala-lang::scala2-library-cc-tasty-experimental`. This is __not considered fully stable__. Example usage in SBT ```scala libraryDependencies += "org.scala-lang" %% "scala2-library-cc-tasty-experimental" % scalaVersion.value ```
We will start publishing
org.scala-lang::scala2-library-tasty-experimental
. This is not considered fully stable.We publish it to allow users to depend on it for stabilization purposes. Once this version of the library is considered fully stable it will become a default dependency of any Scala build.
Example usage in SBT
Behaviour changes
In general, nothing should when compiling against this version of the standard library. If something changes it should be flagged. But this version of the library has more information about the code, which can lead to new warnings (and maybe errors).