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

Terminal command broken from macOS Monterey 12.3 onwards #143524

Closed
m-haug opened this issue Feb 21, 2022 · 2 comments
Closed

Terminal command broken from macOS Monterey 12.3 onwards #143524

m-haug opened this issue Feb 21, 2022 · 2 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@m-haug
Copy link

m-haug commented Feb 21, 2022

Issue Type: Bug

When I use code in a terminal, I would expect VS Code to open a new window or focus one of my existing windows. Instead, I get the following error output:

/usr/local/bin/code: line 6: python: command not found
/usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory

Reading through the release notes for macOS Monterey 12.3 Beta 3, I found the following note:

Python 2.7 was removed from macOS in this update. Developers should use Python 3 or an alternative language instead. (39795874)

This means that the python command is no longer available. Installing Python 3 by default only creates a python3 command.

Symlinking python3 to python works as a workaround. But perhaps it would be possible to fix the script so that it works with either command or without Python at all?

VS Code version: Code 1.64.2 (f80445a, 2022-02-09T22:00:58.347Z)
OS version: Darwin x64 21.4.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz (8 x 2800)
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, 3, 3
Memory (System) 16.00GB (0.12GB free)
Process Argv --crash-reporter-id 5dea8d4b-108e-4472-bd6e-c5497805e2f7
Screen Reader no
VM 0%
@gjsjohnmurray
Copy link
Contributor

/duplicate of #134635 which is fixed in upcoming 1.65

@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants
@gjsjohnmurray @m-haug and others