As `scala-cli config interactive true` is not on by default, scala-cli should explain how to use `--main-class` and `--interactive` in error message
See original GitHub issueVersion(s) 0.1.12
Describe the bug
Beginners don’t know how to use --main-class
which is mentioned in multiple-main-class errors.
To Reproduce Create multiple mains and the user gets an error that is not very informative.
Expected behaviour
When the error of multiple main class are detected scala-cli should explain how to use both --main-class
and --interactive
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Releases · VirtusLab/scala-cli - GitHub
Scala CLI is a command-line tool to interact with the Scala language. It lets you compile, run, test, and package your Scala code...
Read more >lihaoyi/Ammonite - Gitter
[error] The main class amm uses the new style with an Array[String] argument, but scalaJSUseMainModuleInitializer is false.
Read more >how to set main class in SBT 0.13 project - Stack Overflow
You need to put your application's source in src/main/scala/ , project/ is for build definition code.
Read more >Integrating a new editor | Metals - Scalameta
Integrating a new editor. Metals is a language server implemented in Scala that communicates with a single client over JSON-RPC.
Read more >Exploring TypedDict in Python 3.8
Using scala-cli setup -ide . will generate the necessary files for the LSP server for ... mypy ) won't be able to help...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oops. thanks keep repeating myself 😊
Yeah, sure. This now looks like a duplicate of #1315, so let’s track it there. Closing this ticket.