Parse variable references in `terminal.integrated.env.osx`
See original GitHub issueHi, there! 👋
The current recommendation for users of this plugin that wish to forward environment variables to the execution environment of dbt
is to set terminal.integrated.env.{osx,linux,windows}
. The problem is that the current implementation does not support variable references. With other words, this does not work:
{
"terminal.integrated.env.osx": {
"DBT_PROFILES_DIR": "${workspaceFolder}",
"SOME_VARIABLE_USED_BY_DBT": "${env:SOME_VARIABLE_USED_BY_DBT}"
}
}
This works for regular integrated terminals, so it is a divergence from the normal behavior of VS code.
An even better solution to this problem would be if terminal.integrated.inheritEnv
is set to true
, then dbt
is executed in a terminal with the exact same environment variables as the host. Would that be possible? I think it might even make sense as the default behavior.
Thanks in advance, whatever you decide!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:6 (4 by maintainers)
Top Results From Across the Web
VSCode - Not able to resue Env variables set inside terminal ...
In your user settings (File > Preferences > Settings), add the following: "terminal.integrated.allowWorkspaceConfiguration": true.
Read more >VS Code Setting: terminal.integrated.env.osx - YouTube
Want to master VS Code? Click here: https://andrecasal.com/courses/mastery-for-vs-codeWant to upgrade web dev skills?
Read more >Troubleshoot Terminal launch failures - Visual Studio Code
Troubleshoot Visual Studio Code Integrated Terminal launch failures. ... {platform} - Environment variables that will be added to the shell process.
Read more >Dev Container metadata reference
A set of name-value pairs that sets or overrides environment variables for the devcontainer.json supporting service / tool (or sub-processes like terminals) but ......
Read more >GNU make
6.1 Basics of Variable References; 6.2 The Two Flavors of Variables ... If the environment variable MAKEFILES is defined, make considers its ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re having the same problem. This is such an awesome extension but we cannot use it because we are using a
poetry
Python environment install ofdbt
and maintain theprofiles.yml
file inside ourdbt
project. It would be amazing to support a simple configuration in e.g.settings.json
.Fixed in 0.8.9. Let me know if it works