protocolbuffers/protobuf

protoc --grpc_out should look on Windows path for grpc_cpp_plugin.exe

Open

#4.867 geöffnet am 5. Juli 2018

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C++ (16.128 Forks)batch import
c++enhancementhelp wantedprotoc

Repository-Metriken

Stars
 (71.223 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 11h) (185 gemergte PRs in 30 T)

Beschreibung

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