Code Monkey home page Code Monkey logo

Comments (4)

guymers avatar guymers commented on June 4, 2024 1

Everything compiles with 0.11.13+37-3d0668d2-SNAPSHOT, cheers

from scalapb.

thesamet avatar thesamet commented on June 4, 2024

Thanks for the report. I was able to reproduce. A fix will be coming soon.

from scalapb.

guymers avatar guymers commented on June 4, 2024

My apologies, I only included the first two errors in the issue. Thank you for fixing those but the same issue seems to be occurring on "packable" fields:

[error] target/scala-2.13/src_managed/main/com/google/api/field_behavior/FieldBehaviorProto.scala:38:125: polymorphic expression cannot be instantiated to expected type;
[error]  found   : [C <: scalapb.ExtendableMessage[C]]scalapb.GeneratedExtension[C,Seq[com.google.api.field_behavior.FieldBehavior]]
[error]  required: scalapb.GeneratedExtension[com.google.protobuf.descriptor.FieldOptions,scala.collection.immutable.Vector[com.google.api.field_behavior.FieldBehavior]]
[error]     _root_.scalapb.GeneratedExtension.forRepeatedUnknownFieldPackable(1052, _root_.scalapb.UnknownFieldSet.Field.varintLens)({__valueIn => com.google.api.field_behavior.FieldBehavior.fromValue(__valueIn.toInt)}, {(__valueIn: com.google.api.field_behavior.FieldBehavior) => __valueIn.value.toLong}, _.readInt64()
[error]                                                                                                                             ^
[error] target/scala-2.13/src_managed/main/com/google/api/field_behavior/FieldBehaviorProto.scala:38:70: type mismatch;
[error]  found   : scalapb.GeneratedExtension[C,Seq[com.google.api.field_behavior.FieldBehavior]]
[error]  required: scalapb.GeneratedExtension[com.google.protobuf.descriptor.FieldOptions,scala.collection.immutable.Vector[com.google.api.field_behavior.FieldBehavior]]
[error]     _root_.scalapb.GeneratedExtension.forRepeatedUnknownFieldPackable(1052, _root_.scalapb.UnknownFieldSet.Field.varintLens)({__valueIn => com.google.api.field_behavior.FieldBehavior.fromValue(__valueIn.toInt)}, {(__valueIn: com.google.api.field_behavior.FieldBehavior) => __valueIn.value.toLong}, _.readInt64()
extend google.protobuf.FieldOptions {
  repeated google.api.FieldBehavior field_behavior = 1052;
}

from scalapb.

thesamet avatar thesamet commented on June 4, 2024

Thanks for catching that this issue happens for both packable and non-packable fields. Fix is in. We do have a snapshot release built for each commit - it would be great if you can test version 0.11.13+37-3d0668d2-SNAPSHOT.

from scalapb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.