Skip to content

"terminal.integrated.inheritEnv": false having no effect on $SHLVL #130915

@tlambert03

Description

@tlambert03

Issue Type: Bug

I'm struggling with the $PATH of my integrated terminal. Regardless of the terminal.integrated.inheritEnv setting, the $SHLVL of the integrated terminal is always 3.
I have tried disabling all extensions, and reducing my user settings JSON down to that single value.

The main immediate issue for me is that my conda environment's python is at the end of my $PATH, and the system python is being used instead.

VS Code version: Code 1.59.0 (Universal) (379476f, 2021-08-04T23:14:40.191Z)
OS version: Darwin x64 19.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4000)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 4, 3
Memory (System) 64.00GB (20.63GB free)
Process Argv --crash-reporter-id 54548331-bd33-484b-8356-4241bb27bb3f
Screen Reader no
VM 0%
Extensions (70)
Extension Author (truncated) Version
project-manager ale 12.3.0
vscode-sqlite ale 0.13.0
vscode-django bat 1.6.0
markdown-preview-github-styles bie 0.2.0
vscode-styled-jsx bla 2.0.0
vscode-tailwindcss bra 0.6.13
cmake-format che 0.6.11
path-intellisense chr 2.4.0
bracket-pair-colorizer Coe 1.0.61
doxdocgen csc 1.3.2
vscode-markdownlint Dav 0.43.2
vscode-eslint dba 2.1.23
xml Dot 2.5.1
gitlens eam 11.6.0
EditorConfig Edi 0.16.4
prettier-vscode esb 8.1.0
myst-highlight Exe 0.11.0
auto-close-tag for 0.5.12
vscode-opencl gal 0.7.1
matlab Gim 2.0.1
vscode-pull-request-github Git 0.29.2
gc-excelviewer Gra 3.0.42
language-cython guy 0.0.6
beautify Hoo 1.5.0
vscode-cudacpp kri 0.1.1
restructuredtext lex 156.0.0
git-graph mhu 1.30.0
dotenv mik 1.0.1
vscode-docker ms- 1.16.0
python ms- 2021.8.1105858891
vscode-pylance ms- 2021.8.1
jupyter ms- 2021.8.1195043623
remote-containers ms- 0.191.0
remote-ssh ms- 0.65.7
remote-ssh-edit ms- 0.65.7
remote-wsl ms- 0.58.2
cmake-tools ms- 1.7.3
cpptools ms- 1.5.1
vsliveshare ms- 1.0.4673
vsliveshare-audio ms- 0.1.91
vsliveshare-pack ms- 0.4.0
sqltools mtx 0.23.0
sqltools-driver-sqlite mtx 0.2.0
autodocstring njp 0.5.4
material-icon-theme PKi 4.9.0
prisma Pri 2.29.1
java red 0.80.0
vscode-commons red 0.0.6
vscode-xml red 0.18.0
vscode-yaml red 0.22.0
vscode-sort-json ric 1.20.0
vscode-qt-for-python sea 1.1.4
vscode-fileutils sle 3.4.5
sourcery sou 0.9.3
remote-x11 spa 1.5.0
remote-x11-ssh spa 1.5.0
rewrap stk 1.14.0
even-better-toml tam 0.14.2
cmake twx 0.0.17
vscodeintellicode Vis 1.2.14
vscode-java-debug vsc 0.35.0
vscode-java-dependency vsc 0.18.6
vscode-java-pack vsc 0.18.3
vscode-java-test vsc 0.31.2
vscode-maven vsc 0.32.2
change-case wma 1.0.0
clang-format xav 1.9.0
markdown-all-in-one yzh 3.4.0
vscode-fish zgm 0.5.3
material-theme zhu 3.11.3
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes516:30244333
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
pythonvssor306:30344512
bridge0708:30335490
vstre464:30350172
bridge0723cf:30351748

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions