-
Notifications
You must be signed in to change notification settings - Fork 139
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
Implement Scala CLI as the scala
runner command
#2838
Comments
I think allowing a great Windows experience will help a lot. A vast majority of students coming to Lund University to learn Computer Science have windows laptops. I think making the new Allowing My priority order as a teacher of Scala as the fall semester of 2024 is approaching: |
@bjornregnell don't get me wrong, having native platform installations for Scala CLI is the plan, but we want to do it in steps. I was merely establishing the scope to be covered in this ticket, so that we don't try to do everything all at once. As Scala CLI will be distributed alongside the compiler, we would need to have all the scripts contained in the installation in sync. For now, the Windows native distribution will still be available through the old installation methods of |
Great! I also think it is really good if the Even if professional devs most often use some kind of Linux, I believe a vast majority of beginner students in cs at universities come with Windows 10/11 on their laptops, and they might not be seasoned in tricky install procedures of java+scala. So making the Windows UX top-notch for beginners is important IMHO. If we can make it a one-click-install-everything on Windows with an -msi (perhaps it can check for and also install a JDK if needed?) students will be happy. (Most hard troubles I seen on students' machines is them having e.g. corrupted or no JAVAHOME, multiple conflicting JDK versions, an old Oracle entry in the registry incompatible with their User Path etc etc and they have no clue why it does not "just work"...). |
@kasiaMarek @tgodzik do you know how the special name handling for scala-experimental works in error messages? (so the command name renders as currently our solution of bash script wrapper of
|
I think that might be hardcoded, we might need to change that. |
scala-cli/modules/cli/src/main/scala/scala/cli/ScalaCli.scala Lines 30 to 38 in 9a7fda1
yeah it looks unavoidable- it would be good to have a way to change the name to |
@Gedochao Should we close this now that |
Yes, we should! |
Finally, the time has come to bring SIP-46 to a closure and implement Scala CLI as the official runner command for the Scala 3 compiler.
Corresponding compiler issue
scala
runner command scala/scala3#20098Relevant docs
Requirements
scala
runner tests against the Scala CLI launcher on thescala/scala3
CIscala
runner in official Scala 3 distributionsPotential follow-ups which are NOT included in this issue's scope
scalac
,scaladoc
etcThe text was updated successfully, but these errors were encountered: