inheritEnv false is needed for conda environments but true is needed for vscode-R #16301
Labels
bug
Issue identified by VS Code Team member as probable bug
info-needed
Issue requires more information from poster
Environment data
python.languageServer
setting: pylanceApologies if this should be posted in https://github.com/microsoft/vscode or somewhere else. I do not fully understand the role of
"terminal.integrated.inheritEnv"
The problem is that
inheritEnv
has to beFalse
for me to be able to activate conda from the terminal (#5764). However, thevscode-R
extension needsinheritEnv
set toTrue
so it can work with https://github.com/randy3k/radian (see REditorSupport/vscode-R#273).The reason I am reporting this as a bug is that
inheritEnv
can be set toTrue
and I can get my conda environment to work by runningconda deactivate
twice and then activating my conda environment. Maybe this points to a fix for this problem without disablinginheritEnv
?As expected from #5764, when
inheritEnv
is True and I try to activate my conda environment from the terminal the environment seems to be active (it appears at the start of my terminal prompt) but it is actually pointing to my machine's default Python binary (2.7 in Mac OS) instead of the Python binary in the environment.The text was updated successfully, but these errors were encountered: