GNU bug report logs - #62875
28.2; Crash on MacOS/M1 with treesitter enabled

Previous Next

Package: emacs;

Reported by: Drew Moseley <drew.moseley <at> gmail.com>

Date: Sun, 16 Apr 2023 04:33:02 UTC

Severity: normal

Found in version 28.2

Full log


View this message in rfc822 format

From: Drew Moseley <drew.moseley <at> gmail.com>
To: Yuan Fu <casouri <at> gmail.com>, Ruijie Yu <ruijie <at> netyu.xyz>
Cc: 62875 <at> debbugs.gnu.org
Subject: bug#62875: 28.2; Crash on MacOS/M1 with treesitter enabled
Date: Sun, 16 Apr 2023 09:59:19 -0400
[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.