I'm walking through the README example, but I get an error (see below).
I start a sample project with this project.clj:
(defproject sample "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[org.flatland/protobuf "0.8.1"]]
:plugins [[lein-protobuf "0.4.1"]]
:profiles {:dev {:source-paths ["dev"]
:dependencies [[org.clojure/tools.namespace "0.2.4"]]}})
I create resources/proto/person.proto with these contents:
message Person {
required int32 id = 1;
required string name = 2;
optional string email = 3;
repeated string likes = 4;
}
Then I run lein protobuf and I get:
/Users/david/.lein/cache/lein-protobuf/protobuf-2.5.0/src/protoc person.proto --java_out=/Users/david/dev/maybe/sample/target/protosrc -I. -I/Users/david/dev/maybe/sample/target/proto -I/Users/david/dev/maybe/sample/resources/proto
ERROR: /Users/david/dev/maybe/sample/target/proto: warning: directory does not exist.
--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'm walking through the README example, but I get an error (see below).
I start a sample project with this
project.clj:I create
resources/proto/person.protowith these contents:Then I run
lein protobufand I get: