vscode-dbt-power-user
vscode-dbt-power-user copied to clipboard
dbt.buildModelCommandAdditionalParams are not working for overriding the profile
Expected behavior
Hello, I do not want to have the profile specified in the dbt_project.yml. My expectation was that when I add the profile option in the additional params the pluging will pick it and use it.
"dbt.buildModelCommandAdditionalParams": [
"--profile development"
]
Actual behavior
However I wasn't able to make it work. In the plugin code it looks that the params are appended to the dbt command but reality I got the error message.
Steps To Reproduce
Remove the profile: "{{ env_var('DBT_PROFILE', 'development') }}" line from dbt_project.yml
Log output/Screenshots
An error occured while initializing the dbt project: Runtime Error dbt cannot run because no profile was specified for this dbt project. To specify a profile for this project, add a line like the this to your dbt_project.yml file: profile: [profile name] Here, [profile name] should be replaced with a profile name defined in your profiles.yml file. You can find profiles.yml here: /..../profiles.yml
Operating System
ubuntu
dbt version
1.3.0
dbt Adapter
snowflake
dbt Power User version
the latest from vscode
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!