Skip to content
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

add "Nightly Versions of Scala" to Overviews page #3058

Merged
merged 13 commits into from
Sep 4, 2024

Conversation

SethTisue
Copy link
Member

I'm suggesting adding this to https://docs.scala-lang.org/overviews/index.html -- at least I can't think of a better location

the text is based on https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala which I drafted some years ago and have been updating ever since. I should have turned it into official doc a long time ago.

I'm suggesting adding this to
https://docs.scala-lang.org/overviews/index.html
-- at least I can't think of a better location

the text is based on
https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala
which I drafted some years ago and have been updating ever since.
I should have turned it into official doc a long time ago.
@SethTisue
Copy link
Member Author

Scala 2 reviewer: @lrytz ?
Scala 3 reviewer: perhaps @hamzaremmal or @sjrd?

_overviews/core/nightlies.md Outdated Show resolved Hide resolved
_overviews/core/nightlies.md Outdated Show resolved Hide resolved
_overviews/core/nightlies.md Outdated Show resolved Hide resolved
SethTisue and others added 2 commits August 16, 2024 05:54
Co-authored-by: Lukas Rytz <lukas.rytz@gmail.com>
@SethTisue
Copy link
Member Author

SethTisue commented Sep 3, 2024

I think this might be ready for merge now.

@hamzaremmal can you take a look, or suggest another reviewer?

Note to self: once this is merged, I should change the SO answer to point to it. I should also look in scala/scala — I think the readme might need updating.

@hamzaremmal
Copy link
Member

hamzaremmal commented Sep 3, 2024

I think this might be ready for merge now.

@hamzaremmal can you take a look, or suggest another reviewer?

Note to self: once this is merged, I should change the SO answer to point to it.

Sure, will do by the end of the day

Copy link
Member

@hamzaremmal hamzaremmal left a comment

Choose a reason for hiding this comment

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

If mostly looked at the Scala 3 part and the hxxps stuff. For Scala 2, you have more knowledge than me 😉 . You can see my comments above.

_overviews/core/nightlies.md Outdated Show resolved Hide resolved
_overviews/core/nightlies.md Outdated Show resolved Hide resolved

Scala 3 nightly versions are published to Maven Central. If you know the full version number of the nightly you want to use, you can use it just like any other Scala 3 version.

One quick way to get that version number is to visit https://dotty.epfl.ch and look in the upper left corner.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not familiar with how this website is implemented but can we maybe add a script that scrape Maven Central and shows the latest available nightly on the website ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I imagine we could :-)

I leave it up to you whether to open a separate PR or ticket about it.

_overviews/core/nightlies.md Outdated Show resolved Hide resolved
Comment on lines +52 to +62
### quick version (scala-cli)

You can run nightlies with:

scala-cli -S 2.13.nightly
scala-cli -S 2.nightly # same as 2.13.nightly
scala-cli -S 2.12.nightly

The default command is `repl`, but all the other scala-cli subcommands such as `compile` and `run` work, too. It also works with `//>` directives in your script itself, for example:

//> using scala 2.nightly
Copy link
Member

Choose a reason for hiding this comment

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

Seems very repetitive with what the scala 3 section contain. Can we maybe merge the two of them ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I did it that on purpose because I figure either someone is interested in 3, or they're interested in 2, so each section ought to be complete in itself.

Whether it's really best that way, I don't have a strong feeling about. Sounds like your feeling isn't that strong either, so let's leave it like it is for now. I wouldn't mind if it got changed in the future.

Comment on lines +42 to +43
Global / resolvers += "scala-integration" at
"https://scala-ci.typesafe.com/artifactory/scala-integration/"
Copy link
Member

Choose a reason for hiding this comment

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

@SethTisue Do you know what's the reason behind using a custom resolver instead of Maven Central ? As Scala 3 does

Copy link
Member Author

@SethTisue SethTisue Sep 4, 2024

Choose a reason for hiding this comment

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

That decision predates me, which means it was at least 9 years ago. @lrytz might remember more. I think we felt that using up so much space on Maven Central would be excessive. Perhaps we were even wary of hitting some storage limit? Anyway, Guillaume made a different decision for Dotty.

Currently I think it's just inertia, we aren't necessarily opposed to changing it, but we aren't that motivated to change it, either.

_overviews/core/nightlies.md Outdated Show resolved Hide resolved
_ja/overviews/macros/usecases.md Outdated Show resolved Hide resolved
@SethTisue SethTisue merged commit 770d51b into scala:main Sep 4, 2024
1 check passed
@SethTisue SethTisue deleted the nightly-builds-doc-page branch September 4, 2024 19:53
@SethTisue
Copy link
Member Author

SethTisue commented Sep 4, 2024

Thank you Hamza and Lukas!

@SethTisue
Copy link
Member Author

@sjrd
Copy link
Member

sjrd commented Sep 4, 2024

I changed https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala to point to it.

The end of an era.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants