microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.65k stars 285 forks source link

Error running command remote-containers.newContainer on remote SSH #9373

Open kentwait opened 9 months ago

kentwait commented 9 months ago

Command 'Dev Containers: New Dev Container...' resulted in an error

-n/.vscode-remote-containers/bin/4caba0473af34a2b128cedc46f6b13316aae9226_1704779470327

Steps to Reproduce:

  1. Connect to remote: Shift + Command + P -> Remote-SSH: Connect to Host..
  2. Select configured SSH host from choices. New window opens and successfully connects to remote host.
  3. Create new dev container: Shift + Command + P -> Dev Containers - New Dev Container...

Does this issue occur when you try this locally?: No Does this issue occur when you try this locally and all extensions are disabled?: No

andreboyko commented 9 months ago

Same problem here.

I have connection to Remote VSCode via Remote - SSH and try to "Dev Containers: Reopen in Container" and get same error modal.

Here is log from Output -> Extension Host:

2024-01-18 10:55:32.958 [error] {"message":"Command failed: mkdir -p /Users/aboyko\n-n/.vscode-remote-containers/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2_1705564532895","stdout":{"type":"Buffer","data":[]},"stderr":{"type":"Buffer","data":[109,107,100,105,114,58,32,47,85,115,101,114,115,47,97,98,111,121,107,111,10,45,110,58,32,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,10]},"code":1} remote-containers.reopenInContainer {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"}

Path in mkdir looks invalid, cause there is extra "\n-n".

Local OS Version: macOS Sonoma 14.2.1 (23C71) [Darwin 23.2.0] (arm64) Remote OS Version: macOS Sonoma 14.2.1 (23C71) [Darwin 23.0.0] (x86_64) Remote Extension/Connection Type: Containers

UPD: Downgraded Dev Containers extension to v0.321.0 and it works.