protocolbuffers / protocolbuffers/protobuf
protoc --grpc_out should look on Windows path for grpc_cpp_plugin.exe
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 72k
- Forks
- 16.3k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 140
Description
What language does this apply to?
Probably all, but I've only tried the cpp plugin
If it's a proto syntax change, is it for proto2 or proto3?
Not syntax change
If it's about generated code change, what programming language?
Not generated code change
Describe the problem you are trying to solve.
On Windows, I have grpc_cpp_plugin.exe in my PATH. However, I cannot specify the plugin this way:
$ protoc --grpc_out=. --plugin=protoc-gen-grpc=grpc_cpp_plugin.exe things_rpc.proto
--grpc_out: protoc-gen-grpc: The system cannot find the file specified.
Describe the solution you'd like
Search the PATH for plugins
Describe alternatives you've considered
While I can specify the full path to plugin, it would be better to search PATH to make setting up build environments easier.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing protoc's --plugin and --grpc_out handling, using the Windows command shown in the issue as the reproduction. Done means a plugin executable on PATH is found for the command without requiring its full path, while existing explicit-path behavior still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, grpc
- Domain
- cli, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100