sourcegraph / prototools

documentation generator & other tools for protobuf/gRPC
MIT License
167 stars 28 forks source link

Missing input file. #15

Open nirmalkumar1988 opened 6 years ago

nirmalkumar1988 commented 6 years ago

Hello , When i am trying to run below command
protoc --doc_out="doc\" CrewLeaveBidService.proto I am getting below error Missing input file . Could you please help out to resolve this issue?

slimsag commented 6 years ago

Hi, unfortunately we're not using these tools anymore ourselves.

I'm not sure what would cause this issue, but protoc is crazy picky about its arguments, so I suspect the issue is somewhere there. https://github.com/google/protobuf/issues/3028

karenkuegrab commented 6 years ago

Hi @nirmalkumar1988. It seems that there's a newer version of the tool: https://github.com/pseudomuto/protoc-gen-doc

The command to run is something like this: protoc --doc_out=./doc --doc_opt=html,index.html CrewLeaveBidService.proto

You need to make sure that you're running the command in the right directory. You may need to set the proto_path. I encountered issues on that and found some resources online. Good luck!