devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[Bug]: Mac OS vscode Devbox: `Reopen in Devbox shell environment` doesn't work

Open tateexon opened this issue 1 year ago • 14 comments

Current Behavior (bug) I install vscode devbox plugin and then the go plugin. Then in a shell I do this to init devbox:

% cd /path/to/go/project
% devbox version
0.7.1
% devbox init
% devbox add [email protected]
Info: Adding package "[email protected]" to devbox.json
Installing package: [email protected].
[1/1] [email protected]
[1/1] [email protected]: Success
% code ./

vscode opens in the project. I then press Command+Shift+P to open the command palette and choose Devbox: Reopen in Devbox shell environment. This results in a popup with the text:

Command 'Devbox: Reopen in Devbox shell environment' resulted in an error
An unknown error occurred. Please consult the log for more details.

I click ok since that is the only options to close the dialogue and in the bottom right corner of vscode I get an error:

Failed to setup devbox environment.
Source: devbox by jetpack.io (Extension)

I am uncertain where to find the logs for this extension. If you can point me where to look I will gladly provide them. There are no issues showing up in the PROBLEMS or OUTPUT tabs in vscode.

Expected Behavior (fix) I would expect the reopen in devbox shell environment to reopen vscode with the devbox shell as it states.

Additional context Mac OS: Sonoma 14.0 vscode: Version: 1.83.1 (Universal) devbox: 0.7.1 devbox.json

{
  "packages": [
    "[email protected]"
  ],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

tateexon avatar Nov 01 '23 18:11 tateexon