-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Could not find or load main class #12851
Comments
duplicate of #12569 ? |
If needed, you can pin it as duplicate, but in this issue I want to underline, that issue exists on pure scala 3 binary, not wrapped by |
I'll update here if the fix is scala-only and not sbt. btw, snips is a dir name in my prompt. |
I've created issue on |
(that would be appropriate as a comment on the other ticket) |
I'm not sure but I found unexpected behavior after compilation
Scala 3
code withSBT
.build.sbt
looks like:The main object is located under
src/main/scala/com/okarmusk
and looks like:I sequentially run commands:
sbt clean
sbt package
scala target/scala-3.0.0/scala-cheat-sheet_3-1.0.jar
As the result I obtained:
Problem exists on scala 3 version
Scala code runner version 3.0.1-RC1 -- Copyright 2002-2021, LAMP/EPFL
, on scala 2 example works as expected.OS: xubuntu 20.04
sbt: 1.5.2
scala: 3.0.1 RC
Issue exists also in official scala 3.0.0 version
It is worth to notice that when I run
sbt run
the program executes correctly.The text was updated successfully, but these errors were encountered: