emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
827 stars 74 forks source link

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

Closed ubolonton closed 2 years ago

ubolonton commented 2 years ago

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

ubolonton commented 2 years ago

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

wyuenho commented 2 years ago

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 commented 2 years ago

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

evolify commented 2 years ago

Still not work

brurucy commented 2 years ago

Still not working^2 m1 pro

theHamsta commented 2 years ago

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 commented 2 years ago

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

I use straight.el and did the following:

ckruse commented 2 years ago

Great work! Thank you very much!

jeremyf commented 2 years ago

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