devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Devbox: Reopen in Devbox shell environment fails for VS Code on MacOS

Open BeyondEvil opened this issue 4 months ago • 4 comments

What happened?

Running the Devbox: Reopen in Devbox shell environment palette-command fails with an error.

Screenshot 2024-09-24 at 23 00 40 Screenshot 2024-09-24 at 23 00 58

VS Code log says:

2024-09-24 22:00:26.034 [error] undefined devbox.reopen {"value":"jetpack-io.devbox","_lower":"jetpack-io.devbox"}

The devbox extension debug mode logs says:

[Tue, 24 Sep 2024 21:08:46 GMT] Installing devbox packages [Tue, 24 Sep 2024 21:08:46 GMT] Updating VSCode configurations [Tue, 24 Sep 2024 21:08:46 GMT] Calling "devbox integrate" to setup environment [Tue, 24 Sep 2024 21:08:46 UTC] Devbox process initiated. Setting up communication channel with VSCode process [Tue, 24 Sep 2024 21:08:46 UTC] Computing devbox environment [Tue, 24 Sep 2024 21:08:46 GMT] child process closed with exit code: 0

VS Code version:

Version: 1.93.1 Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0

Note: VS Code is installed via homebrew:

❯ whence code
/opt/homebrew/bin/code

Steps to reproduce

  1. Install the Devbox VS Code extension.
  2. Run the palette-command Devbox: Reopen in Devbox shell environment
  3. Observe error

Apologies for the lack of information, but I'm happy to follow other troubleshooting suggestions.

Command

shell

devbox.json

{
  "$schema":  "https://raw.githubusercontent.com/jetify-com/devbox/0.13.0/.schema/devbox.schema.json",
  "packages": ["dotnet-sdk_8@latest"],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.13.0

Nix version

nix (Nix) 2.18.1

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

BeyondEvil avatar Sep 24 '24 21:09 BeyondEvil