-
Notifications
You must be signed in to change notification settings - Fork 41
Formatting Not Working - M1 Macs (darwin/arm64) Unsupported #95
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
Comments
Thanks, it works. |
Thanks, works on the M1 chip now. |
in step5 i think it must be "pyastyle.so" insted of "pyastayle.so" For half an hour I thought I was doing something wrong )) |
Fixed @berrymoor, thanks, and sorry about that. |
Thanks you are a saviour, Now I can live peacefully! |
I've made the patch PR, try pulling from mine if you're too lazy to set up |
Thanks a lot ! |
good solution and thx! |
Uh oh!
There was an error while loading. Please reload this page.
For M1 Macs, the issue is the new Darwin architecture is missing. The architecture directory on this repository has not been updated in 7 years so I will also include a workaround:
pip3 install pyastyle
in your favorite pyenv. I have not confirmed the compatibility between the latest version of pyastyle and the one used in this 7 year old library so YMMV._darwin
.__init__.py
in the new_darwin
directory._darwin
with the namepyastyle.so
. If you pip3 installed this globally, this might be located in a path similar to:~/Library/Python/3.8/lib/python/site-packages/pyastyle.cpython-38-darwin.so
"~/Library/Application Support/Sublime Text/Packages/SublimeAStyleFormatter/pyastyle/python3/__init__.py"
to only include the following:The text was updated successfully, but these errors were encountered: