-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
CLI does not work on macOS beta 12.3 #141880
Comments
Uses less subshells and more bash-native syntax. Fixes microsoft#141880
/duplicate #134635 |
Same here on macOS 12.3 beta with current brew install visual-studio-code
brew install visual-studio-code-insiders About (stable)
About (insiders)
After reading dupe #134635 patching # vim /opt/homebrew/bin/code
# vim /usr/local/bin/code-insiders
- function realpath() { python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; }
+ function realpath() { python3 -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; }
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")"
ELECTRON="$CONTENTS/MacOS/Electron"
CLI="$CONTENTS/Resources/app/out/cli.js"
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"
exit $? Got me back up and running as a temp workaround |
After reading duper #134635 pathing the following way seem to a better idea so we maintain compatibility between Ones
This script offers the option to check for python3 if python3 is not there then we look for python and eventually we return an error if python is not installed at all. Much better than the hard crash we have at the moment. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
code
Apple no longer ships Python 2 as of this macOS version.
The text was updated successfully, but these errors were encountered: