Skip to content

Extension not picking up env variables from .env file #1554

Open
@rapha-pereira

Description

@rapha-pereira

Expected behavior

To use our dbt core we simply execute a source command that gets all the variables in our .env file of the workspace and it runs perfectly, the extension should use them too as described here in the docs of the extension.

Actual behavior

The extension doesn't pick up the variables in .env file and keeps returning the same error (image bellow).
Those env variables are necessary to find the profiles yml of our dbt project.

Image

Steps To Reproduce

  • Create a .env file in your project.
  • Create an env variable called: DBT_PROFILES_DIR
  • Open the project in VSCode
  • Extension doesn't work.

Bellow is my .env file as a .txt

env-example.txt

for example.

Log output/Screenshots

No response

Operating System

WSL for Windows

dbt version

1.7.18

dbt Adapter

BigQuery

dbt Power User version

0.51.2

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions