Skip to content

Scala 2.13.12 #2897

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

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
FAQ: add note about release numbers
  • Loading branch information
SethTisue committed Sep 8, 2023
commit 0e533cd5e27efdd6282dab06714d29c7ab8e0995
10 changes: 7 additions & 3 deletions _overviews/FAQ/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,18 @@ with only minor supplements. That's why `versionString` and
`versionNumberString` report that Scala 2 is in use:

```
Welcome to Scala 3.3.0 (17.0.3, Java OpenJDK 64-Bit Server VM).
Welcome to Scala 3.3.1 (17.0.3, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> util.Properties.versionNumberString
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a line below this one saying val res0: String = 2.13.11.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good eye! But I didn't change it because that's what 3.3.0 actually reports, since 3.3.0 predates 2.13.12. Probably the upgrade will land in 3.3.2 and then we can bump it.

I'll add a little note about it, since this is far from obvious.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, actually the number is too high, not too low! Both 3.3.0 and 3.3.1 use 2.13.10 😢

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, ok. TIL. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I'm pursuing it over at scala/scala3#18525

val res0: String = 2.13.11
val res0: String = 2.13.10
```

Note that Scala 3 offers
Note that even the latest Scala 3 version might not use the very
latest Scala 2 standard library, since the 3 and 2 release schedules
aren't coordinated.

So how do you ask for the Scala 3 version number? Scala 3 offers
`dotty.tools.dotc.config.Properties.versionNumberString`, but only if
you have scala3-compiler on the classpath. So that works in the Scala 3
REPL, but won't work in typical Scala 3 application code.
Expand Down