From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62875: 28.2; Crash on MacOS/M1 with treesitter enabled Date: Sun, 16 Apr 2023 12:51:53 +0800 Message-ID: References: Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="681"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.22; emacs 30.0.50 Cc: Yuan Fu , 62875@debbugs.gnu.org To: Drew Moseley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 16 07:02:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnuWt-000AUB-4J for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Apr 2023 07:02:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnuWa-0003GX-VO; Sun, 16 Apr 2023 01:02:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnuWZ-0003GL-8Y for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 01:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnuWY-00046O-Fy for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 01:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnuWY-0002Qg-9r for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 01:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ruijie Yu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Apr 2023 05:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62875 X-GNU-PR-Package: emacs Original-Received: via spool by 62875-submit@debbugs.gnu.org id=B62875.16816212729278 (code B ref 62875); Sun, 16 Apr 2023 05:02:02 +0000 Original-Received: (at 62875) by debbugs.gnu.org; 16 Apr 2023 05:01:12 +0000 Original-Received: from localhost ([127.0.0.1]:50443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnuVj-0002Pa-Mo for submit@debbugs.gnu.org; Sun, 16 Apr 2023 01:01:12 -0400 Original-Received: from netyu.xyz ([152.44.41.246]:56968 helo=mail.netyu.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnuVh-0002PR-Pw for 62875@debbugs.gnu.org; Sun, 16 Apr 2023 01:01:10 -0400 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id a5a397d4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 16 Apr 2023 05:01:08 +0000 (UTC) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260086 Archived-At: CC'ing Yuan, who is deeply involved in integrating tree-sitter into Emacs. Drew Moseley 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