From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Drew Moseley <drew.moseley@gmail.com>
Cc: Yuan Fu <casouri@gmail.com>, 62875@debbugs.gnu.org
Subject: bug#62875: 28.2; Crash on MacOS/M1 with treesitter enabled
Date: Sun, 16 Apr 2023 12:51:53 +0800 [thread overview]
Message-ID: <sdv5y9w4e1n.fsf@netyu.xyz> (raw)
In-Reply-To: <D68CB86A-653D-4E9D-9CB2-71C5C985F298@gmail.com>
CC'ing Yuan, who is deeply involved in integrating tree-sitter into
Emacs.
Drew Moseley <drew.moseley@gmail.com> writes:
> Start with 'emacs -Q' on MacOS with an M1 chip. I specifically used the
> prebuilt binaries from https://emacsformacosx.com/builds. I could
> reproduce this with the latest stable release, as well as with
> Emacs-pretest-29.0.90-universal and a nightly with version 30.0.50.
>
> Load the following elisp code:
>
> (require 'package)
> (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
> (package-refresh-contents)
> (package-initialize)
> (package-install 'tree-sitter)
> (global-tree-sitter-mode)
> In GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559))
> of 2023-02-22 built on armbob.lan
> Windowing system distributor 'Apple', version 10.3.2299
> System Description: macOS 13.3.1
>
> Configured using:
> 'configure --with-ns '--enable-locallisppath=/Library/Application
> Support/Emacs/${version}/site-lisp:/Library/Application
> Support/Emacs/site-lisp' --with-modules --with-x-toolkit=no'
>
> Configured features:
> ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS
> TOOLKIT_SCROLL_BARS ZLIB
It seems to me that you are trying to install "tree-sitter" from Melpa
with Emacs >= 29? If that is your intention, please note that there is
now builtin support for tree-sitter in Emacs >= 29, and that Melpa
"tree-sitter" is therefore not compatible with Emacs >= 29.
Although, please take that with a grain of salt, because I noticed that
tree-sitter is not mentioned in configure, nor the configured features.
If I'm not mistaken, tree-sitter feature is automatically enabled when
the executable "tree-sitter" is found. Did you install it from your
package manager like brew?
Maybe try to "configure" with --with-tree-sitter and report back what
happens? And also please show what "which tree-sitter" returns on your
system.
--
Best,
RY
next prev parent reply other threads:[~2023-04-16 4:51 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 [this message]
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
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=sdv5y9w4e1n.fsf@netyu.xyz \
--to=bug-gnu-emacs@gnu.org \
--cc=62875@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=drew.moseley@gmail.com \
--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.