-
Notifications
You must be signed in to change notification settings - Fork 132
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
Automatically build tree-sitter-langs from source instead of downloading binaries on arm64 (m1) machines #36
Comments
Yes, all the low-level building blocks are already in |
In the meantime I think you can also use nix to download the grammars: https://github.com/Mic92/dotfiles/blob/3c99578315d30cd23ed2d4f7d8dbf560daaf2820/nixpkgs-config/modules/emacs/default.nix#L79 If that is not your cup of cake you can still configure emacs-tree-sitter to load grammars from a custom directory: https://github.com/Mic92/dotfiles/blob/3c99578315d30cd23ed2d4f7d8dbf560daaf2820/home/.doom.d/config.el#L187 |
I don't actually use nix on my m1/darwin machine, but I have compiled the parsers locally and am already loading them from a custom directory! This issue was just raised in the doom emacs server so I thought it would be nice to openan issue here |
@Mic92 have you run into an issue where tsc is build for the wrong architecture? If so, do you have a nix way to solve it |
No. But nix would also not have this issue on darwin/arm64. |
I have the tsc-dyn.aarch64-apple-darwin.dylib file downloaded how do I load the dynamic library in order to get emacs to (require 'tree-sitter). I have added the core, lisp, and langs to the load path. I am still getting the tsc-dyn error when I try to evaluate the load the tree-sitter plugin. See images below. |
You will need to rename it to |
There’s not enough information to troubleshoot currently. Please describe what happened in more details, e.g. errors/backtraces. Minimal reproduction steps would be helpful. |
Hi, loving the idea (and treesitter on my x86 machine) so far. If emacs is running on an arm64 machine, would it be possible to have tree-sitter-langs automatically download the source and compile the parsers, insetad of download the binary and failing with no warning?
The text was updated successfully, but these errors were encountered: