vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Devcontainer initializeCommand does not get pushed to interactive terminal

Open aniongithub opened this issue 1 year ago • 0 comments

  • VSCode Version: 1.90.1
  • Devcontainer extension version: v0.369.0 and v0.373.0 (pre-release)
  • Local OS Version: Ubuntu 22.04
  • Remote OS Version: Ubuntu 22.04
  • Remote Extension/Connection Type: DevContainer

Steps to Reproduce:

  1. Write an interactive command in initializeCommand, one that waits for input, for ex: read -p "Continue? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
  2. Rebuild and reopen in container

It should behave the same as postAttachCommand, pushing it to an interactive terminal. Instead, it stays in the devcontainer logs terminal and hangs the devcontainer start because the user cannot enter any input here.

Does this issue occur when you try this locally?: Yes (this runs on the host machine) Does this issue occur when you try this locally and all extensions are disabled?: n/a, this is related to the devcontainer extension.

This seems to be re-re-regression of these issues

  1. https://github.com/microsoft/vscode-remote-release/issues/2434#issuecomment-949437987
  2. https://github.com/microsoft/vscode-remote-release/issues/6557

aniongithub avatar Jun 19 '24 06:06 aniongithub