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

Tracker for pre-built dynamic modules and grammars for Apple Silicon (M1) #197

Closed
7 tasks done
ubolonton opened this issue Dec 11, 2021 · 9 comments
Closed
7 tasks done

Comments

@ubolonton
Copy link
Collaborator

ubolonton commented Dec 11, 2021

This will fix #88. Related: #166 and emacs-tree-sitter/tree-sitter-langs#36

@ubolonton
Copy link
Collaborator Author

Binaries for Apple Silicon are available starting from elisp-tree-sitter 0.16.1 and tree-sitter-langs 0.10.13.

@wyuenho
Copy link
Contributor

wyuenho commented Dec 18, 2021

I'm on an M1 Pro, but I don't seem to be able to fetch the correct prebuilt binary when installing from package.el

Compiling file /Users/wyuenho/.emacs.d/elpa/tree-sitter-20211211.1220/tree-sitter.el at Sat Dec 18 01:30:01 2021
tree-sitter.el:22:1: Error: Module could not be opened: "/Users/wyuenho/.emacs.d/elpa/tsc-20211211.1220/tsc-dyn.dylib", "dlopen(/Users/wyuenho/.emacs.d/elpa/tsc-20211211.1220/tsc-dyn.dylib, 0x0001): tried: '/Users/wyuenho/.emacs.d/elpa/tsc-20211211.1220/tsc-dyn.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/tsc-dyn.dylib' (no such file), '/usr/lib/tsc-dyn.dylib' (no such file)"

@wyuenho
Copy link
Contributor

wyuenho commented Dec 18, 2021

Looks like tsc-dyn-get--download wasn't updated to reflect the latest binary naming scheme.

@evolify
Copy link

evolify commented Jan 7, 2022

Still not work

@brurucy
Copy link

brurucy commented Jan 15, 2022

Still not working^2 m1 pro

@theHamsta
Copy link
Contributor

I think it would be good to create a standardized GitHub workflow action that would parsers developers to publish for all relevant platforms. The problem of cross-compling for arm64 would then only have to be solved once for all parser consumers.

@jeremyf
Copy link

jeremyf commented Jan 29, 2022

With PR #206, I was able to get past the compile error

I use straight.el and did the following:

  • Remove the repos and builds from the straight.el build directory
  • Updated my straight tree-sitter to install from Github
  • Restarted my emacs daemon

@ckruse
Copy link

ckruse commented Jan 30, 2022

Great work! Thank you very much!

@jeremyf
Copy link

jeremyf commented Jan 31, 2022

Yes, great work and thank you. TreeSitter highlighting adds just a bit more context to Ruby syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants