-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
macOS 12.3 code
shell command doesn't work due to Python 2 being removed
#141738
Comments
Created a PR for this at #141749. Couple of questions included in there that might lead to more work tho. But figured it'd be a good start to get the ball rolling and try to get this done as quick as possible 😃. |
//cc @deepak1556 @joaomoreno |
/duplicate #134635 |
I got mine working by:
- function realpath() { python -c ...
+ function realpath() { python3 -c ...
And it's all set, hope it helps :) , and maybe there will be update to fix this idk |
I have fixed the issue with "code" not working on local computer after replacing "python" with "python3". Does any of you have problem withe the command "code" on remote server? The "code" command on remote server stop working after I have installed Mac OS 12.3. The command simply does nothing. For example, when I open up file from terminal, I could easily do with "code ${FILE}" After installing Mac OS 12.3, the command does not work anymore on remote server. My second Mac without beta version works fine on remote server, and the command works as usual. Anyone has an idea how to fix the problem with 12.3 version? |
Apparently this script depends on python3 to provide |
this works for me. thanks |
npm install isn't working now because of the same issue it seems. Anyone get that ERR yet ? |
For those of you having issues with this on 12.3 you can always just symlink python to python3 in /usr/local/bin and it will work. |
I had |
Does this issue occur when all extensions are disabled?: Yes
Summary
In macOS 12.3 beta Apple removed support for Python 2. Additionally Python 3 no longer comes bundled with macOS. This causes the
code
command to not work anymore.The fact that VS Code is using Python 2 which hasn’t been officially supported since January 2020 is kinda crazy.
This should be fixed ASAP.
Steps to Reproduce:
Shell command: Install 'code' command in path
in VS Codecode
in TerminalThe text was updated successfully, but these errors were encountered: