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

scala-cli export: Misleading error message when no dest #958

Closed
bjornregnell opened this issue Apr 29, 2022 · 0 comments · Fixed by #978
Closed

scala-cli export: Misleading error message when no dest #958

bjornregnell opened this issue Apr 29, 2022 · 0 comments · Fixed by #978
Assignees

Comments

@bjornregnell
Copy link
Contributor

Version(s)

$ scala-cli version
0.1.4

Describe the bug

When -o dest is omitted in scala-cli export the error message that comes after a looong time (see #957) is misleading, as it says dest already exists, perhaps because when omitting -o then scala-cli assumes current dir and that already exists...

To Reproduce

$ cat main.scala 
@main def run = println("hello")

$ time scala-cli export --sbt main.scala
Error: dest already exists.

Expected behaviour

Either 1) An error message saying that -o is missing or else perhaps 2) if no dest then assume a default dest like sbt-proj or something and report the name of the created dest.

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

Successfully merging a pull request may close this issue.

2 participants