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 compile repeated type #61

Open
spektom opened this issue Jun 7, 2016 · 2 comments
Open

Can't compile repeated type #61

spektom opened this issue Jun 7, 2016 · 2 comments

Comments

@spektom
Copy link

spektom commented Jun 7, 2016

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"]])
@hkxIron
Copy link

hkxIron commented May 7, 2018

Did you find the solution for the problem?Thanks for your reply.

@spektom
Copy link
Author

spektom commented May 7, 2018

@hkxIron IIRC, I used another project to solve this...

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

2 participants