Source of CMake-ish environment variables in terminal #3819
-
Hi folks, I have a project that carefully manages all its various CMake variables externally (mostly within the CMakeList.txt itself). I just moved to using vscode and I realise that somehow when I run a terminal inside vscode, some weird environment variables are being pre-populated that interfere with my runs:
These are not set in a regular terminal, and appear to be coming from something that's parseing my CMake? As I say, these settings then interfere with me manually running Cheers, Matt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems like if I untick "Inherit env" in terminal, that "fixes" it. But I'd love to know what's going on here, if anyone has a clue. |
Beta Was this translation helpful? Give feedback.
The "Inherit env" is coming from a different extension, so we don't have much insight into this behavior. Additionally, to determine if this is something from our extension, are you launching the terminal from an entry point in our extension? Or is this simply in the terminal when you run a command?
We don't edit the environment that VS Code overall is sourced with from our extension, so if the entry point to the terminal is not coming from our extension, then I don't think it's an issue from it.
Let me know if any of that is helpful! THanks.