You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem / feature request / question:
On Windows when running a bazel command that also starts the bazel server via certain means other than the command line, the command doesn't stop as it should. Examples include: running a build on a remote Windows box over cygwin ssh, Visual Studio invoking a build, and invoking a bazel command with python's subprocess.check_output.
If possible, provide a minimal example to reproduce the problem:
In a Bazel workspace:
C:\Users\sgreens\bazel\bazel>bazel shutdown
...............
C:\Users\sgreens\bazel\bazel>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output(['bazel', 'info'])
...............
____Loading package: @bazel_tools//tools/jdk
____Loading package: @local_config_xcode//
____Loading package: @local_config_cc//
____Loading package: @local_jdk//
It hangs at the above. When I then run bazel shutdown in a different command prompt, it prints the output of the command and gives me back the python prompt:
Bazel version (output of bazel info release): 0.6.1
Anything else, information or logs or outputs that would be helpful?
The above repro does not work on Linux.
Additionally, everything works as expected when calling bazel with python's subprocess.call or check_call (as opposed to check_output above)
The text was updated successfully, but these errors were encountered:
I believe bazel client pass a pipe handle for stdout to bazel server, so python waits as long as the server holds the handle. This doesn't happend to stderr though, I am starting to look at the code for reasons.
Description of the problem / feature request / question:
On Windows when running a bazel command that also starts the bazel server via certain means other than the command line, the command doesn't stop as it should. Examples include: running a build on a remote Windows box over cygwin ssh, Visual Studio invoking a build, and invoking a bazel command with python's
subprocess.check_output
.If possible, provide a minimal example to reproduce the problem:
In a Bazel workspace:
It hangs at the above. When I then run
bazel shutdown
in a different command prompt, it prints the output of the command and gives me back the python prompt:Environment info
Operating System: Windows 10
Bazel version (output of
bazel info release
): 0.6.1Anything else, information or logs or outputs that would be helpful?
The above repro does not work on Linux.
Additionally, everything works as expected when calling bazel with python's
subprocess.call
orcheck_call
(as opposed tocheck_output
above)The text was updated successfully, but these errors were encountered: