all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: drew@moseleynet.net
Cc: Ruijie Yu <ruijie@netyu.xyz>, 62875@debbugs.gnu.org
Subject: bug#62875: 28.2; Crash on MacOS/M1 with treesitter enabled
Date: Wed, 19 Apr 2023 12:09:33 -0700	[thread overview]
Message-ID: <6C9A5551-7DF9-4A92-B108-78C9F96D624A@gmail.com> (raw)
In-Reply-To: <dcb95d3c-ff0d-dbba-30b8-b94b8ce5624b@gmail.com>



> On Apr 16, 2023, at 7:11 AM, Drew Moseley <drew.moseley@gmail.com> wrote:
> 
> On 4/16/23 9:59 AM, Drew Moseley wrote:
>> 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.
> I spoke too soon. It does indeed crash with the builtin tree-sitter library. I was using my desktop keyboard shared using barrier.  When I use the laptop keyboard, the crash still happens.
> Drew

Could you share the backtrace/crash log you mentioned earlier? That’ll help us determine what was going on.

Yuan




  reply	other threads:[~2023-04-19 19:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-15 19:17 bug#62875: 28.2; Crash on MacOS/M1 with treesitter enabled Drew Moseley
2023-04-16  4:51 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-16  5:04   ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-16 13:41     ` Drew Moseley
2023-04-16  5:33 ` Yuan Fu
2023-04-16 13:59   ` Drew Moseley
2023-04-16 14:11     ` Drew Moseley
2023-04-19 19:09       ` Yuan Fu [this message]
2023-04-19 20:45         ` Drew Moseley
2023-04-21 20:40 ` Yuan Fu
2023-04-22  7:24   ` Eli Zaretskii
2023-04-22 14:22   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6C9A5551-7DF9-4A92-B108-78C9F96D624A@gmail.com \
    --to=casouri@gmail.com \
    --cc=62875@debbugs.gnu.org \
    --cc=drew@moseleynet.net \
    --cc=ruijie@netyu.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.