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

Unhelpful error message on invalid source file or command #1671

Closed
julienrf opened this issue Dec 8, 2022 · 1 comment
Closed

Unhelpful error message on invalid source file or command #1671

julienrf opened this issue Dec 8, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.

Comments

@julienrf
Copy link
Contributor

julienrf commented Dec 8, 2022

Is your feature request related to a problem? Please describe.

When someone runs scala (as installed by cs install scala-experimental) with an invalid command name, or an invalid source file name, the output is not helpful:

$ scala foobar            

[error]  foobar: not found

Describe the solution you'd like

The tool should explain what it tried to do (here, running a Scala program named “foobar”), why it failed (here, the file “foobar” does not exist), and what the user could do to fix the problem (check that the file name is correct? add a missing extension? or, in case the user simply constructed a wrong invocation, remind them that they can get general help with scala --help?).

@julienrf julienrf added the enhancement New feature or request label Dec 8, 2022
@tgodzik tgodzik added the SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command. label Dec 8, 2022
@Gedochao
Copy link
Contributor

Gedochao commented Dec 8, 2022

This is a duplicate of #1240.
Tagging #1240 as SIP and closing this.

@Gedochao Gedochao closed this as completed Dec 8, 2022
@Gedochao Gedochao added the duplicate This issue or pull request already exists label Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Projects
None yet
Development

No branches or pull requests

3 participants