Code Monkey home page Code Monkey logo

protoc-gen-openswoole-grpc's Introduction

protoc-gen-openswoole-grpc's People

Contributors

andrejro2 avatar doubaokun avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

andrejro2 oxidmod

protoc-gen-openswoole-grpc's Issues

optional fields support?

validator.proto: is a proto3 file that contains optional fields, but code generator protoc-gen-openswoole-grpc hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.--openswoole-grpc_out:

Having problems with helloworld.proto - basic failure

If I use the compiler from the command line like so

protoc --php_out=./src/classes \
  --openswoole-grpc_out=./src/classes \
  --plugin=protoc-gen-grpc=protoc-gen-openswoole-grpc \
  ./proto/helloworld.proto

I get a basic error which doesn't give me much to go on

/usr/local/bin/protoc-gen-openswoole-grpc: 1: Syntax error: "(" unexpected
--openswoole-grpc_out: protoc-gen-openswoole-grpc: Plugin failed with status code 2.

If I omit the --openswoole-grpc_out switch it works

It appears it doesn't like something about the service def

syntax = "proto3";

package helloworld;

// The greeting service definition.
service Greeter {
  // Sends a greeting
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

service Stream {
  rpc FetchResponse (HelloRequest) returns (stream HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  string name = 1;
}

// The response message containing the greetings
message HelloReply {
  string message = 1;
}

Where am I going wtong?

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.