fast-nail-55400
12/02/2021, 5:27 PMInteractiveProcess
expose a pseudo-terminal to the process being run? (context: I was trying to get the Scala Ammonite repl to run, but when invoked by Pants Ammonite just emits lots of sh: /dev/tty: Device not configured
errors)hundreds-father-404
12/02/2021, 5:35 PMwitty-crayon-22786
12/02/2021, 5:52 PMpantsd
propagates the TTY: https://github.com/pantsbuild/pants/issues/5223witty-crayon-22786
12/02/2021, 5:52 PMwitty-crayon-22786
12/02/2021, 5:53 PMwitty-crayon-22786
12/02/2021, 5:54 PMwitty-crayon-22786
12/02/2021, 5:56 PMhundreds-father-404
12/02/2021, 6:04 PMfast-nail-55400
12/02/2021, 6:07 PMfast-nail-55400
12/02/2021, 6:08 PM--no-pantsd
witty-crayon-22786
12/02/2021, 6:08 PMfast-nail-55400
12/02/2021, 6:09 PM./pants --no-pantsd repl --shell=ammonite testprojects/src/jvm::
fast-nail-55400
12/02/2021, 6:09 PMJvmToolBase
in any casefast-nail-55400
12/02/2021, 6:10 PMfast-nail-55400
12/02/2021, 7:05 PMJvmToolBase
fast-nail-55400
12/02/2021, 7:05 PMInteractiveProcess
, maybe we should support setting up a pseudo-terminal for the process invocation?witty-crayon-22786
12/02/2021, 7:05 PMfast-nail-55400
12/02/2021, 7:06 PMfast-nail-55400
12/02/2021, 7:06 PMwitty-crayon-22786
12/02/2021, 7:07 PMfast-nail-55400
12/02/2021, 7:07 PMwitty-crayon-22786
12/02/2021, 7:07 PMwitty-crayon-22786
12/02/2021, 7:08 PMwitty-crayon-22786
12/02/2021, 7:11 PMdup
the relevant handle of the TTY rather than opening one, and whether that would preserve settingswitty-crayon-22786
12/02/2021, 7:11 PMwitty-crayon-22786
12/02/2021, 7:12 PMwitty-crayon-22786
12/02/2021, 8:06 PMrun
or repl
the “last command in the run” is that it allows --loop
to work for interactive processes… i’m not sure what bazel does here, but i think that run
is essentially always “the end of your bazel run”… which is why bazel-watcher
ends up forking multiple copies of bazel, and sortof needs to be a wrapperwitty-crayon-22786
12/02/2021, 8:08 PMrepl
though… only run
, or test --debug