-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
Protosb descriptor isn't 2.x compatible #28
Comments
I use scalapb 0.4.14 and "com.github.os72" % "protoc-jar" % "2.x.5" using "-v261". It seems to work without problems having
at the beginning of my proto files. |
@crispywalrus Thanks for reporting. Are you on protoc 2.6.1 or an earlier version? We can solve it by providing a second copy of scalapb.proto without that line so it can work with older protoc's. In the mean time you can work around it by modifying your own copy of scalapb.proto. |
Closing due to inactivity. I believe this should work on >=2.6.1 |
@thesamet I am using protoc 2.6.1 and getting an error
I suppose it's related to this issue. |
nvm, I didn't add scalapb-runtime |
@prettynatty how did you add |
@niiamon See "Adding scalapb.proto to your project" at http://trueaccord.github.io/ScalaPB/customizations.html |
@thesamet thanks but I already have that in the project but it's still not working. @prettynatty I'm actually using your actor-server but I am simply unable to get it to compile due to the protobufs error. These are some of the issues that complain when I attempt a build:
Any ideas how I can get over this? |
@niiamon Will you be able to reproduce this issue on a minimal project and post it on github so we can help debug? |
@thesamet on it. I will revert here as soon as I have something. |
@thesamet Please see this: https://github.com/niiamon/scalapb-test. I have Scala PB added to the project and I have a small proto file in there. I am still relatively new to Scala and Protocol Buffers as well so any comments are welcome. |
@niiamon , your build.sbt was adding So the full libraryDependencies in your case should be:
|
@thesamet so I've made those changes here as well. No such luck. I still get the same import was not found problem. |
Works completely fine here when I start sbt and type |
scalapb/scalapb.proto contains a
syntax="proto2";
directive in it, this directive isn't understood by protoc (2.x.x) This means using scalapb's very nice advance features isn't possible. Our team isn't ready to move to 3.x given it's alpha status but we'd like to start using scalapb's advance field type functionality.The text was updated successfully, but these errors were encountered: