Comments (3)
Catching up.
Do you mean that if Wire generates google/protobuf/descriptor.proto
, it won't generate FileDescriptorProto
that you need?
from wire.
Hi @oldergod - there are two cases I tried. One is with the exact protos linked. Then it doesn't compile at all with the above error message.
If I change this import to google/protobuf/descriptor.proto
https://github.com/google/protobuf.dart/blob/master/protoc_plugin/protos/plugin.proto#L55
And remove descriptor.proto
from that folder, the compilation succeeds, but naturally it didn't generate FileDescriptorProto
since it wasn't part of the build.
from wire.
Wire doesn't generate FileDescriptorProto
. But there is a way to get it by using the https://github.com/square/wire/blob/master/wire-schema/src/commonMain/kotlin/com/squareup/wire/schema/internal/SchemaEncoder.kt
Look at the tests to see how it can be done https://github.com/square/wire/blob/master/wire-schema/src/jvmTest/kotlin/com/squareup/wire/schema/internal/SchemaEncoderTest.kt
Note that some things are not supported as described in SchemaEncoder's doc.
from wire.
Related Issues (20)
- Proto generation fails on Windows with trailing comments
- Crash on annotations.proto HOT 8
- `srcDir` should accept `TaskProvider`
- Accept binary DescriptorProto as input HOT 4
- JavaScript name hashCode is generated for different inherited members [Kotlin Multiplatform] [JS] HOT 2
- Wire adds generated sources to the sourceset two too many times HOT 1
- Add support for Api, FieldMask, SourceContext, and Type from protobuf's `.proto' files. HOT 5
- iOS Client HOT 1
- Poor colour contrast for headers on docs site HOT 4
- FieldOptions.wire_name to dodge name collisions on options
- Crash when parsing packed `repeated uint64` field with length 0 in Swift HOT 5
- java.lang.IllegalStateException: too early; can't read the trailers yet HOT 7
- Malformed packed varints read beyond field length HOT 2
- Building Kotlin (.kt) files with wire-compiler via command line?
- Compile hang on 97% HOT 2
- Error: multiple enums share constant HOT 1
- Cross-Version Runtime Guarantee by Wire?
- Generate static factory method for generated builders in Java HOT 2
- wire-grade-plugin strips deprecated option from EnumTypes
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 wire.