Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devcontainer containerEnv variables not being transpiled from .env file #239854

Open
corvuszero opened this issue Feb 6, 2025 · 0 comments
Open
Assignees

Comments

@corvuszero
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Version: 1.97.0 (Universal)
    Commit: 33fc5a9
    Date: 2025-02-04T22:41:26.688Z
  • OS Version: macOS 15.2 (24C101)

Steps to Reproduce:

  1. Open Project with a Devcontainer previously running and getting Environment Variables from .devcontainer/.env
  2. Build Devcontainer and watch code fail without any changes
  3. open VSCode terminal and execute printenv
  4. Watch environment variables not being transpiled, example:

.devcontainer/.env

MYSQL_HOST=hello

./devcontainer/devcontainer.json

"containerEnv: {
  "MYSQL_HOST": "$MYSQL_HOST"
}

VSCode Terminal printenv:

MYSQL_HOST=$MYSQL_HOST

Expected Result (working before mentioned VSCode version):

MYSQL_HOST=hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants