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

閏年の課題についての悩みごとはありますか? #1

Closed
wakita opened this issue Oct 13, 2015 · 5 comments
Closed

閏年の課題についての悩みごとはありますか? #1

wakita opened this issue Oct 13, 2015 · 5 comments

Comments

@wakita
Copy link
Contributor

wakita commented Oct 13, 2015

No description provided.

@3tty0n
Copy link

3tty0n commented Oct 13, 2015

演習室のキーボードが使えず自分のMacで作業してるのですが

> run
java.lang.RuntimeException: No main class detected.
    at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) No main class detected.
[error] Total time: 0 s, completed 2015/10/13 15:45:56
>

となって辛いです
どうしたらいいでしょう

>testしたら恒常的に

> test
[success] Total time: 0 s, completed 2015/10/13 15:45:54

となり厳しいです

@3tty0n
Copy link

3tty0n commented Oct 13, 2015

build.sbtfork in run := trueを書くことで解決しました

@wakita
Copy link
Contributor Author

wakita commented Oct 13, 2015

サポートしたいのですが、事情がよく見えません。おっしゃるように main 関数が定義されていないと run コマンドは利用できません。ですので、run コマンドがエラーになるのは正常です。

test については、よくわかりません。fork in run は実行時の Java の仮想機械の複製にかかわる設定なので、test の問題とは無関係のはずなんですが。

@3tty0n
Copy link

3tty0n commented Oct 13, 2015

srcフォルダ内でsbtを実行したら上のようになったので、その直上のフォルダ(build.sbtが置いてあるところ)でsbtを起動したら問題なく> testが実行できました
なのでこれは自分がsbtを起動した場所が悪かったのだと解釈しました
お手数おかけして申し訳ありません

@wakita
Copy link
Contributor Author

wakita commented Oct 14, 2015

なるほど。そういうことはありますね。問題が解決したので、この issue は閉じますね。

@wakita wakita closed this as completed Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants