https://pantsbuild.org/ logo
#general
Title
# general
c

curved-television-6568

01/21/2022, 1:20 PM
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

hundreds-father-404

01/21/2022, 4:50 PM
I don't repreoduce, but also ctrl-c isn't doing anything for me and I have to use
q
to quite less.
h

happy-kitchen-89482

01/21/2022, 5:04 PM
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

curved-television-6568

01/22/2022, 7:25 AM
Thanks, will try that..
h

happy-kitchen-89482

01/22/2022, 3:04 PM
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

curved-television-6568

01/25/2022, 2:00 PM
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
14 Views