Skip to content

Can't compile repeated type #61

Description

@mispecto

Proto file:

message Settings {
  repeated string currencies = 1;
  repeated string timezones  = 2;
}

When running lein jar, I'm getting these errors:

/home/michael/Dev/projects/af-protocol/target/protosrc/af_protocol/protobuf/Events.java:6377: error: cannot find symbol
          currencies_ = currencies_.getUnmodifiableView();
...
  symbol:   method getUnmodifiableView()
  location: variable timezones_ of type LazyStringList
/home/michael/Dev/projects/af-protocol/target/protosrc/af_protocol/protobuf/Events.java:6753: error: cannot find symbol
        return currencies_.getUnmodifiableView();
...
  symbol:   method getUnmodifiableView()
  location: variable timezones_ of type LazyStringList
/home/michael/Dev/projects/af-protocol/target/protosrc/af_protocol/protobuf/Events.java:6420: error: incompatible types: LazyStringList cannot be converted to ProtocolStringList
      return currencies_;
             ^
...

Project settings are:

  :plugins [[lein-protobuf "0.4.3"]]
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [org.flatland/protobuf "0.8.1"]
                 [com.google.protobuf/protobuf-java "2.6.1"]])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions