-
Notifications
You must be signed in to change notification settings - Fork 80
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
unable to "sbt run", No main class detected #76
Comments
figured out the command should be sbt 'project scalabuff-compiler' 'run --proto_path=.. --scala_out=...' would be nice to see this in the documentation |
Actually, by default you should be in the scalabuff-compiler project Also you can try using sbt-scalabuff (linked to from the readme) for easier
|
re-opening as requested |
@SandroGrzicic I'm facing the same issue while compiling > run --proto_path=src/main/resources/ --scala_out=src/main/scala/code/model/ from References |
Me too - with an old version (1.2.0) though - and when I use the command above : I runs, confirms a successful run, but does not generate any scala classes Vipuls-MacBook-Pro-3:ScalaBuff-1.2.0 vipul$ sbt 'project scalabuff-compiler' 'run --proto_path=/path/to/proto/ --scala_out=/path/to/scala' but /path/to/scala has nothing in it ~Vipul |
btw same thing runs with 1.2.2 |
Have you tried the latest version (1.3.7)? |
Oh yes, It works like a charm with 1.3.7 - the only problem is that I"m using this with Spark which comes packaged with Protobuf 2.4.1 and using 1.3.7 creates conflicts. I had no choice but to go back in time and get 1.2.* |
Sorry to hear that. Have you been able to resolve this? I'm hoping a newer release of Spark has a newer Protobuf. |
Fix: unable to 'sbt run', No main class detected #76
I'm trying to use scalabuf to generate scala code from protofiles, but I'm having trouble getting it to even run. I'm using scala 2.10.3, sbt 0.13.1, and java 1.7.0_21
after checking out the repo,
$ sbt run
Loading /Users/alan/dev/sbt-0.13.1/bin/sbt-launch-lib.bash
[info] Loading project definition from /Users/alan/work/cloudmon/dev-master/ProtoServer/tools/protobuf-src-gen/src/github.com/SandroGrzicic/ScalaBuff/project
[info] Set current project to scalabuff (in build file:/Users/alan/work/cloudmon/dev-master/ProtoServer/tools/protobuf-src-gen/src/github.com/SandroGrzicic/ScalaBuff/)
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last scalabuff/compile:run for the full output.
error No main class detected.
[error] Total time: 0 s, completed Jan 17, 2014 5:15:12 PM
so I ran sbt again to enter the console and ran the following to get the stack trace
The text was updated successfully, but these errors were encountered: