Is this a known issue? If I run `./pants help … | ...
# general
c
Is this a known issue? If I run
./pants help … | less
and then exit it with
ctrl-c
I get a
BrokenPipe
error (nothing strange about that) but the terminal is broken after that. (no echo etc..) (using
bash
on Mac)
h
I don't repreoduce, but also ctrl-c isn't doing anything for me and I have to use
q
to quite less.
h
I have seen issues like this. Does your terminal restore to health with
stty sane
?
(you can type it even if you can't see it)
c
Thanks, will try that..
h
It's not a long-term solution, we shouldn't break the terminal in the first place... just wondering if that sorts it out
👍 1
c
Ok, first,
help
works, it was
help-all
that was broken, and yes, it’s
q
to quit (my fingers know better than I) and
stty sane
restores, which is a great workaround until fixed properly.
Copy code
$ ./pants help-all | less
Traceback (most recent call last):
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/pants_loader.py", line 119, in <module>
    main()
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/pants_loader.py", line 115, in main
    PantsLoader.main()
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/pants_loader.py", line 111, in main
    cls.run_default_entrypoint()
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/pants_loader.py", line 93, in run_default_entrypoint
    exit_code = runner.run(start_time)
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/pants_runner.py", line 86, in run
    return remote_runner.run(start_time)
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/remote_pants_runner.py", line 117, in run
    return self._connect_and_execute(pantsd_handle, start_time)
  File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/remote_pants_runner.py", line 151, in _connect_and_execute
    return PyNailgunClient(port, executor).execute(command, args, modified_env)
BrokenPipeError
Ah, guess this is (at least related to) https://github.com/pantsbuild/pants/issues/9939