question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Version(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:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bjornregnellcommented, Sep 5, 2022

oops. thanks keep repeating myself 😊

0reactions
Gedochaocommented, Sep 5, 2022

At least the error message of the multiple main class missing option should excplain how to use both --main-class and --interactive. Would that be ok?

Yeah, sure. This now looks like a duplicate of #1315, so let’s track it there. Closing this ticket.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found