Comments (4)
Everything compiles with 0.11.13+37-3d0668d2-SNAPSHOT
, cheers
from scalapb.
Thanks for the report. I was able to reproduce. A fix will be coming soon.
from scalapb.
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.
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)
- JSON serialization of Any message fails when the message has a special JSON representation HOT 2
- scalapb grpc runtime & InProcessTransport HOT 4
- Unrecognized enum serialized as int HOT 2
- Cannot name a 'oneof' field 'option' if an optional field exists HOT 1
- --jvm_0_out: protoc-gen-jvm_0: Plugin failed with status code 1. WIth Java version 11, change to 17 is fixed HOT 21
- Type Mismatch Error with `asRecognized` in versions 0.11.14 and 0.11.15 HOT 3
- sealed_oneof_companion_extends doesn't work for optional sealed oneof
- Sealed oneof "extend" for Empty case HOT 1
- java.lang.IllegalAccessError: tried to access method 'com.google.protobuf.LazyStringArrayList' HOT 10
- google/protobuf/empty.proto: File not found. HOT 1
- Define trait for GeneratedEnumCompanion’s fromJavaValue/toJavaValue HOT 1
- Support Scala 3.4 type wildcards HOT 2
- `_typemapper` are defined as package private, causing issues when deriving schemas HOT 4
- Protobuf with a field named using generates invalid Scala 3 code HOT 1
- ArrayIndexOutOfBoundsException on getFieldByNumber HOT 5
- UTF-8 Strings are unparseable? HOT 2
- JsonFormat.toJsonString omits authorisation string in the output JSON HOT 2
- Dependency on `scalapb.options.ScalapbProto` in generated code. HOT 3
- New release HOT 1
- Add an option to generate oneof fields as a sealed abstract class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalapb.