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

Can't try clojure-protobuf per README #43

Open
vi opened this issue Apr 12, 2013 · 0 comments
Open

Can't try clojure-protobuf per README #43

vi opened this issue Apr 12, 2013 · 0 comments

Comments

@vi
Copy link

vi commented Apr 12, 2013

README suggests creating resources/proto/person.proto with "Person" message.

Hovewer this way "lein protoc" fails:

 >  /home/vi/.lein/cache/lein-protobuf/protobuf-2.4.1/src/protoc person.proto --java_out=/tmp/qq/prototest/target/protosrc -I. -I/tmp/qq/prototest/target/proto -I/tmp/qq/prototest/resources/proto
ERROR: --java_out: person.proto: person.proto: Cannot generate Java output because the file's outer class name, "Person", matches the name of one of the types declared inside it.  Please either rename the type or use the java_outer_classname option to specify a different outer class name for the .proto file.

I have to rename the message to "Person2" to get it well and use (import Person$Person2) as well. Also I have to fix: (use 'flatland.protobuf.core) instead of (use 'protobuf.core)...

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

No branches or pull requests

1 participant