GNU bug report logs -
#62875
28.2; Crash on MacOS/M1 with treesitter enabled
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 4/16/23 1:33 AM, Yuan Fu wrote:
> Emacs 29 (and nightly) comes with a builtin support for tree-sitter.
> Looking at emacsformacosx, all nightly builds since 2023/3/10 have
> tree-sitter builtin. To try that out, you can follow this guide:
>
> https://archive.casouri.cc/note/2023/tree-sitter-in-emacs-29/index.html
>
> A easy way to distinguish between the third-party package and the
> builtin support is to look at the prefix, tree-sitter-xxx is the
> third-party one, treesit-xxx is the builtin one.
>
>
> Yuan
Nice. thanks for the link. After setting up the built-in treesitter it
does not crash. To clarify, the init file I am using for this case is:
(add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))
(add-to-list 'treesit-language-source-alist
'(c "https://github.com/tree-sitter/tree-sitter-c.git"))
And the tree-sitter command line:
$ type -a tree-sitter
tree-sitter is /opt/homebrew/bin/tree-sitter
$ tree-sitter --version
tree-sitter 0.20.8
It does still fail with the external treesitter package. I tried on both
v28 where it is required as well as v29.
Drew
--
mailto:drew <at> moseleynet.net
[Message part 2 (text/html, inline)]
This bug report was last modified 2 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.