Comments (6)
The include_well_known_types
branch works for me!
from protox.
Thanks for the report! The funny thing is that I cannot reproduce this 😬. But the message returned by protoc might give a hint: \ngoogle/protobuf/any.proto: File not found
.
I think it means that not all protoc installations come with well-known types 🤔. Out of curiosity, how did you install protoc (and on which OS) ?
I guess I have to add the definitions of these types manually. I was reluctant to do this at first, but it seems other implementations had to do this (for instance: go).
from protox.
Could you try with the include_well_known_types branch? It should fix this bug as now well-known types proto files are embedded in protox.
from protox.
Interesting! Maybe this has something to do with how I installed protoc? I encountered this error first on my Fedora workstation, but I just tried on my Macbook and I do not get the error there. I think I just grabbed the binary from their github releases page on both workstations...
I'll try out that branch right now!
from protox.
Just for a bit more information, in my application's dockerfile, which is based on hexpm/elixir:1.12.3-erlang-24.0.6-ubuntu-focal-20210325
and I install protoc from https://github.com/protocolbuffers/protobuf/releases/download/v3.15.5/protoc-3.15.5-linux-x86_64.zip
, I can reproduce the error as well when trying the released 1.6 version.
from protox.
Thank you! I'll release 1.6.1 right away to fix this.
BTW, looking at the readme.txt file in the archive you referenced, it says:
If you intend to use the included well known types then don't forget to
copy the contents of the 'include' directory somewhere as well, for example
into '/usr/local/include/'.
So I guess that some package managers don't perform this step.
from protox.
Related Issues (20)
- Generating code for services? HOT 7
- Supporting FileOptions HOT 9
- key not found when encoding optional fields HOT 10
- [Feature request] support `extend` when nested inside a message definition HOT 9
- [Feature request] Define spec for structs HOT 1
- Feature request: ability to ignore unknown fields and not have __uf__ properties in structs HOT 6
- Not seeing mix tasks HOT 6
- protox and the `package` directive (was: Proposal - Support Namespace definition when use files generation) HOT 4
- [BUG] Fix compile warning when use --keep-unknown-fields=false HOT 1
- Enable manual import path specification HOT 2
- Proto3 Field Presence HOT 3
- feature request: ability to inject definition into existing module HOT 6
- protox generates nested lists (was: Strange behavior when encoding complex nested struct) HOT 2
- [BUG] README.md contains misleading examples HOT 1
- Inconsistency in generated functions specs? HOT 1
- [QUESTION] Enums implementation HOT 9
- [Feature Request] support for decimal 1.9.x HOT 4
- [BUG] The code generated is not deterministic HOT 6
- [BUG] HOT 4
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 protox.