Czarek wrote:Do not make any changes to script args otherwise you have to make changes to all args in regards to paths. Execute it from the `out/Release_GN_x64' directory.
You're right. I did change to out\Release_GN_x64 and run it from there.
This time it failed immediately without even outputting errors from the protoc_wrapper.py script, no traceback no nothing, as if it didn't even find the protoc_wrapper.py script which clearly isn't the case because if I change the script name in the args it will definitely complain it doesn't find it.
Here's the output with the correct script name:
D:\code\chromium_git\chromium\src\out\Release_GN_x64>D:\code\depot_tools\win_tools-2_7_6_bin\python\
bin\python.exe ..\..\tools\protoc_wrapper\protoc_wrapper.py dom_distiller.proto --protoc .\protoc.ex
e --proto-in-dir ..\..\third_party\dom_distiller_js\dist\proto --cc-out-dir gen\third_party\dom_dist
iller_js --py-out-dir pyproto\third_party\dom_distiller_js --plugin ..\..\third_party\dom_distiller_
js\protoc_plugins\json_values_converter.bat --plugin-out-dir gen\third_party\dom_distiller_js --plug
in-options output_dir=:
The system cannot find the path specified.
--plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
Protoc has returned non-zero status: 1 .
And here's the output with the wrong script name (added an s at the end so it became protoc_wrappers.py):
D:\code\chromium_git\chromium\src\out\Release_GN_x64>D:\code\depot_tools\win_tools-2_7_6_bin\python\
bin\python.exe ..\..\tools\protoc_wrapper\protoc_wrappers.py dom_distiller.proto --protoc .\protoc.e
xe --proto-in-dir ..\..\third_party\dom_distiller_js\dist\proto --cc-out-dir gen\third_party\dom_dis
tiller_js --py-out-dir pyproto\third_party\dom_distiller_js --plugin ..\..\third_party\dom_distiller
_js\protoc_plugins\json_values_converter.bat --plugin-out-dir gen\third_party\dom_distiller_js --plu
gin-options output_dir=:
D:\code\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe: can't open file '..\..\tools\protoc_w
rapper\protoc_wrappers.py': [Errno 2] No such file or directory