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.68k stars 295 forks source link

Can't use devcontainer cli on macos #7856

Open lennertvdc opened 1 year ago

lennertvdc commented 1 year ago

I've tried to install devcontainer cli via vscode. But if I want to use the devcontainer command following error appears:

/usr/local/bin/devcontainer: line 52: /private/var/folders/p0/rtj9cdjx5_s91b54h9pm4rp40000gn/T/AppTranslocation/04CDBFDE-9ED4-4672-A563-6BAE4FB4B165/d/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper: No such file or directory

Steps to Reproduce:

  1. Go to command palet (command + shift + p)
  2. Type "Devcontainers: Install devcontainer CLI" to install devcontainer cli
  3. After devcontainer cli is installed, type "devcontainer --help" in the command line Following error will appear:
    /usr/local/bin/devcontainer: line 52: /private/var/folders/p0/rtj9cdjx5_s91b54h9pm4rp40000gn/T/AppTranslocation/04CDBFDE-9ED4-4672-A563-6BAE4FB4B165/d/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper: No such file or directory

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

joshkreud commented 5 days ago

Still an issue on MacOS 15.1 VSCode 19.95.3 (Universal) installed using the Official .dmg

EDIT: Got it working by installing it via NPM thoguh (npm install -g @devcontainers/cli). Only the "add to PATH" option on VSCode seems to have this issue.