Coder Social home page Coder Social logo

Comments (6)

sneako avatar sneako commented on May 31, 2024 1

The include_well_known_types branch works for me!

from protox.

ahamez avatar ahamez commented on May 31, 2024

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.

ahamez avatar ahamez commented on May 31, 2024

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.

sneako avatar sneako commented on May 31, 2024

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.

sneako avatar sneako commented on May 31, 2024

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.

ahamez avatar ahamez commented on May 31, 2024

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)

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.