Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vscode doesn't respect the login shell on MacOS #233884

Open
ladyrick opened this issue Nov 15, 2024 · 0 comments
Open

Vscode doesn't respect the login shell on MacOS #233884

ladyrick opened this issue Nov 15, 2024 · 0 comments
Assignees
Labels
new release Issues found in a recent release of VS Code triage-needed

Comments

@ladyrick
Copy link

Type: Bug

  1. install and config a miniconda.
  2. brew install xonsh
  3. add /opt/homebrew/bin/xonsh to /etc/shells
  4. on conda base env, run pip install xonsh
  5. add /opt/homebrew/Caskroom/miniconda/base/bin/xonsh to /etc/shells
  6. chsh -s /opt/homebrew/Caskroom/miniconda/base/bin/xonsh to change the login shell
  7. reboot
  8. open iterm2. the shell is /opt/homebrew/bin/xonsh, which shows that the login shell is changed.
  9. open vscode. open integrated terminal. the terminal looks like a "xonsh", but actually it is /opt/homebrew/bin/xonsh instead of the login shell /opt/homebrew/Caskroom/miniconda/base/bin/xonsh

And some tries:

  1. I try to chsh -s /bin/bash, reboot, and chsh -s /opt/homebrew/Caskroom/miniconda/base/bin/xonsh. no help.
  2. I try to brew uninstall xonsh. Then I open vscode terminal. It exits quickly. But the second time I open vscode terminal, It works.
  3. I try to remove /opt/homebrew/bin/xonsh from /etc/shells, reboot. It works.

It seems like vscode deeply relay on /etc/shells to determine which shell to start.

By the way, on MacOS, when I change the login shell, vscode must requires a reboot to notice that the login shell has been changed. This bothers me little because I can accept a reboot. But this time it is a real bug.


VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Darwin arm64 24.0.0
Modes:

System Info
Item Value
CPUs Apple M1 Pro (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 118, 39, 15
Memory (System) 32.00GB (19.20GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (28)
Extension Author (truncated) Version
better-comments aar 3.0.2
gitlens eam 16.0.0
prettier-vscode esb 11.0.0
code-runner for 0.12.2
shell-format fox 7.2.5
copilot Git 1.245.0
copilot-chat Git 0.22.2
vsc-python-indent Kev 1.18.0
vscode-color-identifiers-mode Mat 1.3.0
vscode-language-pack-zh-hans MS- 1.95.2024103009
black-formatter ms- 2024.4.0
debugpy ms- 2024.12.0
flake8 ms- 2023.10.0
isort ms- 2023.13.13171013
python ms- 2024.20.0
vscode-pylance ms- 2024.11.2
jupyter ms- 2024.10.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.115.1
hexeditor ms- 1.11.1
remote-explorer ms- 0.4.3
material-icon-theme PKi 5.14.1
datetime rid 2.2.2
code-spell-checker str 3.0.1
sort-lines Tyr 1.12.0
@vs-code-engineering vs-code-engineering bot added new release Issues found in a recent release of VS Code triage-needed labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new release Issues found in a recent release of VS Code triage-needed
Projects
None yet
Development

No branches or pull requests

2 participants