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

value parseDelimitedFrom is not a member of object #103

Open
GildedHonour opened this issue Jan 23, 2015 · 1 comment
Open

value parseDelimitedFrom is not a member of object #103

GildedHonour opened this issue Jan 23, 2015 · 1 comment

Comments

@GildedHonour
Copy link

An error in the version 1.3.8, sbt 0.12.4, scala 2.10.4

Error:(109, 41) value parseDelimitedFrom is not a member of object my_app123.MyClass
  private def readClass123() = MyClass123.parseDelimitedFrom(in).getOrElse(throw new Exception("No server response"))

And in .proto file I have this:

//.........
message MyClass123 {
  // .....
  optional MsgCode aaa1 = 1;
  optional MavlinkMsg bbb2 = 2;


}

//.........

And this is what it generates:

//.....

object MyClass123 {
    @reflect.BeanProperty val defaultInstance = new MyClass123()

    val AAA1_FIELD_NUMBER = 1
    val BBB2_FIELD_NUMBER = 2

  //..........
}

There're no methods such as "parseDelimitedFrom"

@SandroGrzicic
Copy link
Owner

That's weird - a parseDelimitedFrom should always be generated on the companion object. Can you try 1.4.0 and see if you still have the issue? Thanks.

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