Giter Club home page Giter Club logo

Comments (4)

jkinkead avatar jkinkead commented on July 28, 2024

I have a fix that appears to work, but fails during unit test validation; I can't get make_protos.sh to work correctly. If you have any pointers, I'm happy to get this working and submit a patch!

from protoreflect.

jhump avatar jhump commented on July 28, 2024

@jkinkead, sorry you couldn't get make_protos.sh to work. Any hints on what part of the script was failing? If you can make some changes to get it to work in your environment, I'll take a patch.

I just merged a small change that appears to address it. Let me know if it looks anything like your fix and re-open this issue if it doesn't address it for you.

from protoreflect.

jkinkead avatar jkinkead commented on July 28, 2024

Awesome, I confirmed that fix works. Your solution is cleaner than mine was, as well. :)

make_protos.sh was giving me errors because it couldn't find google/protobuf/descriptor.proto:

google/protobuf/descriptor.proto: File not found.
desc_test_options.proto: Import "google/protobuf/descriptor.proto" was not found or had errors.
desc_test_options.proto:9:8: "google.protobuf.MessageOptions" is not defined.
desc_test_options.proto:13:8: "google.protobuf.FieldOptions" is not defined.
desc_test_options.proto: "google.protobuf.FieldOptions" is not defined.
desc_test_options.proto:18:8: "google.protobuf.EnumOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumOptions" is not defined.
desc_test_options.proto:26:8: "google.protobuf.EnumValueOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumValueOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumValueOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumValueOptions" is not defined.
desc_test_options.proto: "google.protobuf.EnumValueOptions" is not defined.
desc_test_options.proto:34:8: "google.protobuf.ServiceOptions" is not defined.
desc_test_options.proto: "google.protobuf.ServiceOptions" is not defined.
desc_test_options.proto:39:8: "google.protobuf.MethodOptions" is not defined.
desc_test_options.proto: "google.protobuf.MethodOptions" is not defined.

It's possible that I haven't installed protoc correctly (IIRC I used homebrew), or I'm missing a key dependency / path item.

from protoreflect.

jhump avatar jhump commented on July 28, 2024

protoc installations should include these proto files. Typically, they are installed alongside the protoc binary (like in an include folder that is a sibling of protoc or, if protoc is in a bin folder, the include folder is sibling of that).

I have a custom protoc install at the moment, built from source, and it works. You might try that (clone the protobuf repo and build the binary -- which will end up in the src directory of the repo).

from protoreflect.

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.