-
Notifications
You must be signed in to change notification settings - Fork 270
Open
Labels
Description
What happened?
When the VSCode extension is run and on selects "Reopen devbox", it only sets the env variables but it doesn't run the init hook. Init hooks can include important steps and set other environment variables that aren't set using the env
key in the devbox.json
. When using things like Cursor or extensions that open their own shells and don't get the devbox shell
injection, they thus lack important variables
Steps to reproduce
- create a devbox.json with an init_hook that sets an environment variable e.g
TEST=true
- open the project in VSCode with the extension installed and the "devbox shell" injection deactivated
- use the "reopen in devbox" feature
- open a terminal and run
echo $TEST
It will not be set.
Command
No response
devbox.json
Devbox version
0.16.0
Nix version
2.31.0
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response