Giter VIP home page Giter VIP logo

Comments (4)

shanegxxiao avatar shanegxxiao commented on May 25, 2024

"ts-protoc-gen": "^0.5.2"

from ts-protoc-gen.

jonnyreeves avatar jonnyreeves commented on May 25, 2024

from ts-protoc-gen.

shanegxxiao avatar shanegxxiao commented on May 25, 2024

yes, there is still this issue, with "ts-protoc-gen": "^0.4.0".
this is the output:

E:\ig\sample\ts-server\sample\grpc>protoc --plugin=protoc-gen-ts=protoc-gen-ts.bat --js_out=import_style=commonjs,binary:generated --ts_out=service=true:generated -I ./protos ./protos/helloworld.proto --ts_out: protoc-gen-ts: Plugin output is unparseable: \r\nE:\\ig\\sample\\ts-server\\sample\\grpc>./../../node_modules/.bin/protoc-gen-ts\r\nz\230\r\n\022helloworld_pb.d.tsz\201\r// package: helloworld\n// file: helloworld.proto\n\nimport * as jspb from \"google-protobuf\";\n\nexport class HelloRequest extends jspb.Message {\n getName(): string;\n setName(value: string): void;\n\n serializeBinary(): Uint8Array;\n toObject(includeInstance?: boolean): HelloRequest.AsObject;\n static toObject(includeInstance: boolean, msg: HelloRequest): HelloRequest.AsObject;\n static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};\n static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};\n static serializeBinaryToWriter(message: HelloRequest, writer: jspb.BinaryWriter): void;\n static deserializeBinary(bytes: Uint8Array): HelloRequest;\n static deserializeBinaryFromReader(message: HelloRequest, reader: jspb.BinaryReader): HelloRequest;\n}\n\nexport namespace HelloRequest {\n export type AsObject = {\n name: string,\n }\n}\n\nexport class HelloReply extends jspb.Message {\n getMessage(): string;\n setMessage(value: string): void;\n\n serializeBinary(): Uint8Array;\n toObject(includeInstance?: boolean): HelloReply.AsObject;\n static toObject(includeInstance: boolean, msg: HelloReply): HelloReply.AsObject;\n static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};\n static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};\n static serializeBinaryToWriter(message: HelloReply, writer: jspb.BinaryWriter): void;\n static deserializeBinary(bytes: Uint8Array): HelloReply;\n static deserializeBinaryFromReader(message: HelloReply, reader: jspb.BinaryReader): HelloReply;\n}\n\nexport namespace HelloReply {\n export type AsObject = {\n message: string,\n }\n}\n\nz\250\004\n\030helloworld_pb_service.tsz\213\004// package: helloworld\n// file: helloworld.proto\n\nimport * as helloworld_pb from \"./helloworld_pb\";\nexport class Greeter {\n static serviceName = \"helloworld.Greeter\";\n}\nexport namespace Greeter {\n export class SayHello {\n static readonly methodName = \"SayHello\";\n static readonly service = Greeter;\n static readonly requestStream = false;\n static readonly responseStream = false;\n static readonly requestType = helloworld_pb.HelloRequest;\n static readonly responseType = helloworld_pb.HelloReply;\n }\n}\n

Do I use this plugin correctly?

from ts-protoc-gen.

shanegxxiao avatar shanegxxiao commented on May 25, 2024

the problems is in my "protoc-gen-ts.bat", when I put "@echo off" command at the first line, then it works.

from ts-protoc-gen.

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.