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

cs launch for scala launches the compiler rather than runner for 3.5.0+ #243

Open
Gedochao opened this issue Sep 5, 2024 · 0 comments
Open

Comments

@Gedochao
Copy link

Gedochao commented Sep 5, 2024

So here's the thing.

cs launch scala:3.4.3 # (and below)
# <old scala runner is being called>
cs launch scala:3.5.0 # (and later)
# <scalac is being called>

This is a rather niche usage, but here we are, it is confusing.
The cause for it is #239, which is a (valid) fix for #238

Optimally, we'd like cs launch to pick up the new scala script here, but that's not possible from coursier/apps level, as cs launch currently only supports running a main class.
We can run the old runner for 3.5.0+ with:

cs launch scala:3.5.0 -M dotty.tools.MainGenericRunner
# [warning] MainGenericRunner class is deprecated since Scala 3.5.0, and Scala CLI features will not work.
# [warning] Please be sure to update to the Scala CLI launcher to use the new features.
# [warning] Check the Scala 3.5.0 release notes to troubleshoot your installation.
# Welcome to Scala 3.5.0 (17, Java OpenJDK 64-Bit Server VM).
# Type in expressions for evaluation. Or try :help.
# 
# scala> 
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

No branches or pull requests

1 participant