coursier / coursier/apps

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

Open
#243 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
41
Forks
59
Avg merge
3h 20m
Merged PRs (30d)
8

Description

So here's the thing.
```bash
cs launch scala:3.4.3 # (and below)
#
cs launch scala:3.5.0 # (and later)
#
```
This is a rather niche usage, but here we are, it is confusing.
The cause for it is https://github.com/coursier/apps/pull/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:
```bash
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>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.