Closed nicks closed 3 weeks ago
Related to https://github.com/tilt-dev/tilt/issues/6378, but the repro steps are slightly different :thinking:
Tiltfile:
local_resource( 'test', ['node', './main.js'], stdin_mode='pty')
main.js:
const { spawn } = require('node:child_process'); let promise = new Promise((resolve, reject) => { let proc = spawn('/bin/zsh', [ '-i', '-l', '-c', 'echo exit', ]); proc.on('error', (err) => { console.log('ERROR PROCESS'); }); proc.on('close', (code, signal) => { console.log('CLOSE PROCESS'); }); });
1) Run tilt up and wait a little while 2) Hit space
tilt up
space
Tilt should successfully run the command
On macOS, tilt crashes with suspended (tty input) On Linux, the terminal gets mysteriously detached from the tilt process
suspended (tty input)
Related to https://github.com/tilt-dev/tilt/issues/6378, but the repro steps are slightly different :thinking:
Steps to Reproduce
Tiltfile:
main.js:
1) Run
tilt up
and wait a little while 2) Hitspace
Expected Behavior
Tilt should successfully run the command
Current Behavior
On macOS, tilt crashes with
suspended (tty input)
On Linux, the terminal gets mysteriously detached from the tilt process