From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: vinurs <hi@vinurs.me>
Newsgroups: gmane.emacs.bugs
Subject: bug#73310: tree-sitter makes cpu 100%
Date: Wed, 11 Dec 2024 15:44:04 +0800
Message-ID: <etPan.675942c9.4b88f419.2ce9@vinurs.me>
References: <etPan.66e8dafd.15470223.15a2e@vinurs.me>
 <86ldzqbh02.fsf@gnu.org> <etPan.66ec1eda.1cd06450.ba0f@vinurs.me>
 <DE2BCEAB-C072-4C87-878C-BE2992458467@gmail.com>
 <etPan.67309775.136adf70.3a80@vinurs.me> <86bjynl43x.fsf@gnu.org>
 <etPan.67309a9e.50881797.3d1c@vinurs.me>
 <0653B68D-3F98-4D06-8C37-8976DC8C2BA4@gmail.com>
 <etPan.67445dd2.510ac259.d458@vinurs.me> <861pyjk7ip.fsf@gnu.org>
 <7C7183A4-758E-491E-B403-A57723598F53@gmail.com>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="675942c9_423bdd41_2ce9"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="18285"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 73310@debbugs.gnu.org
To: Yuan Fu <casouri@gmail.com>, Eli Zaretskii <eliz@gnu.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 08:45:26 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1tLHPR-0004bB-ED
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 08:45:25 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1tLHP8-0001aO-Et; Wed, 11 Dec 2024 02:45:06 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1tLHP4-0001a0-Ux
 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 02:45:03 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1tLHP4-00089u-LG
 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 02:45:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=MIME-Version:References:In-Reply-To:From:Date:To:Subject;
 bh=0zxrb5PfKvEMvKHB9QeKcybN+fdfJl+cWA6JN3ysdvQ=; 
 b=uCuQqP7YV1tO61XYvpc3WAjmEOtL9mYfbdvI4duwh63lX9tPo+v9vqq2itgggcah5yv9D/dRTxyZwOGF+PCUW9WXObx8UShiPuaCoEcGsfSW2MKMRlqEGOrq1OPk20iWUhm2udXY4DqSw/DF0phWz2NnauHiaWuf4o0x1SWGhZBmm+i7pPczoc/VwT0cnWkwGKz3cHf+yZlt+APZwtIJIX7j4iS2WH8X1PvjRdSH3SoJl9UM0T+jBmZAdTPuCNwxNbRDIXplZ8XO5FzBHB7/5vZRMeMQV3GMICmAFBqRBiDg4rxbcPLERhrQp4k3hSdzCTAKZfYMoNoGYAA95aZ4qg==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tLHP4-0002up-EU
 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 02:45:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: vinurs <hi@vinurs.me>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 11 Dec 2024 07:45:02 +0000
Resent-Message-ID: <handler.73310.B73310.173390307211134@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 73310
X-GNU-PR-Package: emacs
Original-Received: via spool by 73310-submit@debbugs.gnu.org id=B73310.173390307211134
 (code B ref 73310); Wed, 11 Dec 2024 07:45:02 +0000
Original-Received: (at 73310) by debbugs.gnu.org; 11 Dec 2024 07:44:32 +0000
Original-Received: from localhost ([127.0.0.1]:60979 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tLHOZ-0002tV-9y
 for submit@debbugs.gnu.org; Wed, 11 Dec 2024 02:44:32 -0500
Original-Received: from sender4-op-o12.zoho.com ([136.143.188.12]:17287)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hi@vinurs.me>) id 1tLHOW-0002tL-Gv
 for 73310@debbugs.gnu.org; Wed, 11 Dec 2024 02:44:29 -0500
ARC-Seal: i=1; a=rsa-sha256; t=1733903054; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=kQ2q2YPH4KB8MyYi5LB7TfhPHTnu382D8iuL2g8OdmttnKsOSg5gnu9NrBKNQwQ3SPSaECg2Y3VTrJeH+Z6QwvCG5tnuVIW0PbsIXvO9LSsBMHy78J0QnJzBTTbh18XXiQQbzBqrU3EdvnVeekk54xbkJrNRNsST4P8J6kOhuAs=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1733903054;
 h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To;
 bh=0zxrb5PfKvEMvKHB9QeKcybN+fdfJl+cWA6JN3ysdvQ=; 
 b=JYqR2dbWjwkJ0XMReRrxBWqhy4zLUs1+q5WptJ4ZcyxRgU14ky83mARYGru4eC95z2oJPqZQyBeYmqFm8eyyOd6sRMVlaCAXmo42W0GaOem3lIRAjR4e4bz052mFc+dVcefWpsUwaC9i4CcXW9HWJZgc7OrbmxE814j9oWIN7ts=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=vinurs.me;
 spf=pass  smtp.mailfrom=hi@vinurs.me;
 dmarc=pass header.from=<hi@vinurs.me>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1733903054; 
 s=zmail; d=vinurs.me; i=hi@vinurs.me;
 h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Message-Id:Reply-To;
 bh=0zxrb5PfKvEMvKHB9QeKcybN+fdfJl+cWA6JN3ysdvQ=;
 b=FjrNJgBopxKN4Y9eUOuqQ9TxGTgu1pLIfDwkU4T+P6qqVx21xfwz8EZeXJceaJda
 11hRBwQtiC1jRqMpKV4XQlcaxEBlvgKtahIcOcdoYRK1g3/bQ9xS9H70Uryc5DtQ1xX
 tJbHkzHuRElu4U4ARdkG2BsUEfgBXcoajlNVeJVE=
Original-Received: by mx.zohomail.com with SMTPS id 1733903053769522.3994924454229;
 Tue, 10 Dec 2024 23:44:13 -0800 (PST)
In-Reply-To: <7C7183A4-758E-491E-B403-A57723598F53@gmail.com>
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=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:296806
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/296806>

--675942c9_423bdd41_2ce9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,otool -L /opt/homebrew/Cellar/emacs-plus=4031/31.0.50/Emacs.app/Conten=
ts/MacOS/Emacs/opt/homebrew/Cellar/emacs-plus=4031/31.0.50/Emacs.app/Cont=
ents/MacOS/Emacs:=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46rameworks=
/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, curren=
t version 2575.20.19)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46ramew=
orks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, curre=
nt version 275.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46ramewor=
ks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, curre=
nt version 170.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46ramewor=
ks/IOSurface.framework/Versions/A/IOSurface (compatibility version 1.0.0,=
 current version 1.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46ram=
eworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version =
1.2.0, current version 1.11.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library=
/=46rameworks/UniformTypeIdentifiers.framework/Versions/A/UniformTypeIden=
tifiers (compatibility version 1.0.0, current version 709.0.0)=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 /opt/homebrew/opt/libtiff/lib/libtiff.6.dylib (compatibili=
ty version 8.0.0, current version 8.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/=
homebrew/opt/jpeg-turbo/lib/libjpeg.8.dylib (compatibility version 8.0.0,=
 current version 8.3.2)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/libp=
ng/lib/libpng16.16.dylib (compatibility version 61.0.0, current version 6=
1.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/giflib/lib/libgif.dyl=
ib (compatibility version 0.0.0, current version 7.2.0)=C2=A0 =C2=A0 =C2=A0=
 =C2=A0 /opt/homebrew/opt/webp/lib/libwebpdemux.2.dylib (compatibility ve=
rsion 3.0.0, current version 3.15.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/home=
brew/opt/webp/lib/libwebpdecoder.3.dylib (compatibility version 5.0.0, cu=
rrent version 5.9.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/librsvg=
/lib/librsvg-2.2.dylib (compatibility version 53.0.0, current version 53.=
0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /usr/lib/libSystem.B.dylib (compatibility=
 version 1.0.0, current version 1351.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt=
/homebrew/opt/glib/lib/libgio-2.0.0.dylib (compatibility version 8201.0.0=
, current version 8201.2.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/=
gdk-pixbuf/lib/libgdk=5Fpixbuf-2.0.0.dylib (compatibility version 4201.0.=
0, current version 4201.12.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/op=
t/glib/lib/libgobject-2.0.0.dylib (compatibility version 8201.0.0, curren=
t version 8201.2.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/glib/lib=
/libglib-2.0.0.dylib (compatibility version 8201.0.0, current version 820=
1.2.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/gettext/lib/libintl.8=
.dylib (compatibility version 13.0.0, current version 13.0.0)=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 /opt/homebrew/opt/cairo/lib/libcairo.2.dylib (compatibilit=
y version 2.0.0, current version 2.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/h=
omebrew/opt/imagemagick/lib/libMagickWand-7.Q16HDRI.10.dylib (compatibili=
ty version 11.0.0, current version 11.2.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /op=
t/homebrew/opt/imagemagick/lib/libMagickCore-7.Q16HDRI.10.dylib (compatib=
ility version 11.0.0, current version 11.2.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
/System/Library/=46rameworks/WebKit.framework/Versions/A/WebKit (compatib=
ility version 1.0.0, current version 619.2.8)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
/opt/homebrew/opt/dbus/lib/libdbus-1.3.dylib (compatibility version 36.0.=
0, current version 36.4.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /usr/lib/libxml2.2.=
dylib (compatibility version 10.0.0, current version 10.9.0)=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0=
, current version 5.4.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/gnu=
tls/lib/libgnutls.30.dylib (compatibility version 69.0.0, current version=
 69.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/little-cms2/lib/lib=
lcms2.2.dylib (compatibility version 3.0.0, current version 3.16.0)=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 /usr/lib/libz.1.dylib (compatibility version 1.0.0,=
 current version 1.2.12)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/gmp=
/lib/libgmp.10.dylib (compatibility version 16.0.0, current version 16.0.=
0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/tree-sitter/lib/libtree-s=
itter.0.24.dylib (compatibility version 0.0.0, current version 0.0.0)=C2=A0=
 =C2=A0 =C2=A0 =C2=A0 /opt/homebrew/opt/sqlite/lib/libsqlite3.0.dylib (co=
mpatibility version 9.0.0, current version 9.6.0)=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 /System/Library/=46rameworks/Core=46oundation.framework/Versions/A/Co=
re=46oundation (compatibility version 150.0.0, current version 3107.0.0)=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46rameworks/CoreGraphics.framew=
ork/Versions/A/CoreGraphics (compatibility version 64.0.0, current versio=
n 1883.1.10)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46rameworks/Core=
Services.framework/Versions/A/CoreServices (compatibility version 1.0.0, =
current version 1226.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=46r=
ameworks/CoreText.framework/Versions/A/CoreText (compatibility version 1.=
0.0, current version 844.1.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /System/Library/=
=46rameworks/=46oundation.framework/Versions/C/=46oundation (compatibilit=
y version 300.0.0, current version 3107.0.0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 /=
usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228=
.0.0)  ------------Sincerely,Haiyuan Zhang, VinursBinaryBrain LLC =E5=BC=80=
 2024=E5=B9=B412=E6=9C=8811=E6=97=A5 =E5=9C=A8 15:04:40, Yuan =46u (casou=
ri=40gmail.com) =E5=86=99=E5=88=B0: =20

> On Dec 7, 2024, at 4:22=E2=80=AFAM, Eli Zaretskii <eliz=40gnu.org> wrot=
e:
> =20
> Ping=21 Can anybody reproduce this and debug the problem=3F
> =20
>> Date: Mon, 25 Nov 2024 19:21:49 +0800
>> =46rom: vinurs <hi=40vinurs.me>
>> Cc: 73310=40debbugs.gnu.org, Eli Zaretskii <eliz=40gnu.org>
>> =20
>> =20
>> Hi Yuan,
>> I installed tree-sitter version 0.24.4 using brew install tree-sitter.=
 =20
>> I then tried the following Emacs versions: =20
>> 1. emacs-plus=4030 =20
>> 2. emacs-plus=4031 =20
>> 3. Emacs-pretest-30.0.92-universal.dmg
>> (https://emacsformacosx.com/emacs-builds/Emacs-pretest-30.0.92-univers=
al.dmg) =20
>> 4. Compiled Emacs myself with the following configuration: =20
>> ./configure --with-tree-sitter=3D/opt/homebrew/opt/tree-sitter --with-=
native-comp
>> I attempted to reproduce the issue using the following steps: =20
>> Move to line 52. Delete all characters following :error-code. Quickly =
press the spacebar twice. At this point,
>> Emacs freezes.
>> The issue persists across all versions and builds.
>> =20
>> ------------
>> =20
>> Sincerely,
>> =20
>> Haiyuan Zhang, Vinurs
>> =20
>> BinaryBrain LLC
>> =20
>> =E5=BC=80 2024=E5=B9=B411=E6=9C=8825=E6=97=A5 =E5=9C=A8 09:48:30, Yuan=
 =46u (casouri=40gmail.com) =E5=86=99=E5=88=B0:
>> =20
>>> On Nov 10, 2024, at 3:35=E2=80=AFAM, vinurs <hi=40vinurs.me> wrote: =20
>>> =20
>>> Because I saw Yuan=E2=80=99s response in the tree-sitter issue thread=
 stating that this bug had already been
>> fixed, so I'm not sure if it=E2=80=99s the same issue anymore.
>>> =20
>>> https://github.com/tree-sitter/tree-sitter/issues/3620 =20
>>> =20
>>> ------------ =20
>>> Sincerely, =20
>>> =20
>>> Haiyuan Zhang, Vinurs =20
>>> BinaryBrain LLC
>> =20
>> Sorry for the late response. I went over the reproduce recipe again, a=
nd at least for me, Emacs
>> doesn=E2=80=99t hang anymore. Maybe your Emacs isn=E2=80=99t picking u=
p the right tree-sitter library=3F =20
>> =20
>> Yuan

I tried again with v0.24.4 and emacs 30, and still can=E2=80=99t reproduc=
e this. Haiyuan, if you run =20

otool -L <emacs-binary>

What=E2=80=99s the location of libtree-sitter=3F I=E2=80=99m asking to se=
e if there=E2=80=99s an old tree-sitter library on your system that Emacs=
 is picking up over the new library you installed.

Yuan
--675942c9_423bdd41_2ce9
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


    <style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</style><d=
iv id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial;f=
ont-size:13px; margin: 0px; line-height: auto;=22>Hi,</div><div id=3D=22b=
loop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13p=
x; margin: 0px; line-height: auto;=22><br></div><div id=3D=22bloop=5Fcust=
omfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; margin: =
0px; line-height: auto;=22><div id=3D=22bloop=5Fcustomfont=22 style=3D=22=
margin: 0px;=22><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px=
;=22>otool -L /opt/homebrew/Cellar/emacs-plus=4031/31.0.50/Emacs.app/Cont=
ents/MacOS/Emacs</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margi=
n: 0px;=22><br></div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin=
: 0px;=22>/opt/homebrew/Cellar/emacs-plus=4031/31.0.50/Emacs.app/Contents=
/MacOS/Emacs:</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: =
0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/AppKit.f=
ramework/Versions/C/AppKit (compatibility version 45.0.0, current version=
 2575.20.19)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0=
px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/IOKit.fra=
mework/Versions/A/IOKit (compatibility version 1.0.0, current version 275=
.0.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>=
&nbsp; &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/Carbon.framework=
/Versions/A/Carbon (compatibility version 2.0.0, current version 170.0.0)=
</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp=
; &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/IOSurface.framework/V=
ersions/A/IOSurface (compatibility version 1.0.0, current version 1.0.0)<=
/div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp;=
 &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/QuartzCore.framework/V=
ersions/A/QuartzCore (compatibility version 1.2.0, current version 1.11.0=
)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbs=
p; &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/UniformTypeIdentifie=
rs.framework/Versions/A/UniformTypeIdentifiers (compatibility version 1.0=
.0, current version 709.0.0)</div><div id=3D=22bloop=5Fcustomfont=22 styl=
e=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/libt=
iff/lib/libtiff.6.dylib (compatibility version 8.0.0, current version 8.0=
.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&n=
bsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/jpeg-turbo/lib/libjpeg.8.dyli=
b (compatibility version 8.0.0, current version 8.3.2)</div><div id=3D=22=
bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nb=
sp; /opt/homebrew/opt/libpng/lib/libpng16.16.dylib (compatibility version=
 61.0.0, current version 61.0.0)</div><div id=3D=22bloop=5Fcustomfont=22 =
style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/=
giflib/lib/libgif.dylib (compatibility version 0.0.0, current version 7.2=
.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&n=
bsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/webp/lib/libwebpdemux.2.dylib=
 (compatibility version 3.0.0, current version 3.15.0)</div><div id=3D=22=
bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nb=
sp; /opt/homebrew/opt/webp/lib/libwebpdecoder.3.dylib (compatibility vers=
ion 5.0.0, current version 5.9.0)</div><div id=3D=22bloop=5Fcustomfont=22=
 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt=
/librsvg/lib/librsvg-2.2.dylib (compatibility version 53.0.0, current ver=
sion 53.0.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0=
px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /usr/lib/libSystem.B.dylib (compatibil=
ity version 1.0.0, current version 1351.0.0)</div><div id=3D=22bloop=5Fcu=
stomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/h=
omebrew/opt/glib/lib/libgio-2.0.0.dylib (compatibility version 8201.0.0, =
current version 8201.2.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=
=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/gdk-pixb=
uf/lib/libgdk=5Fpixbuf-2.0.0.dylib (compatibility version 4201.0.0, curre=
nt version 4201.12.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22=
margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/glib/lib/li=
bgobject-2.0.0.dylib (compatibility version 8201.0.0, current version 820=
1.2.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22=
>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/glib/lib/libglib-2.0.0.dyl=
ib (compatibility version 8201.0.0, current version 8201.2.0)</div><div i=
d=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nb=
sp; &nbsp; /opt/homebrew/opt/gettext/lib/libintl.8.dylib (compatibility v=
ersion 13.0.0, current version 13.0.0)</div><div id=3D=22bloop=5Fcustomfo=
nt=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebre=
w/opt/cairo/lib/libcairo.2.dylib (compatibility version 2.0.0, current ve=
rsion 2.0.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0=
px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/imagemagick/lib/libM=
agickWand-7.Q16HDRI.10.dylib (compatibility version 11.0.0, current versi=
on 11.2.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px=
;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/imagemagick/lib/libMag=
ickCore-7.Q16HDRI.10.dylib (compatibility version 11.0.0, current version=
 11.2.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22=
>&nbsp; &nbsp; &nbsp; &nbsp; /System/Library/=46rameworks/WebKit.framewor=
k/Versions/A/WebKit (compatibility version 1.0.0, current version 619.2.8=
)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbs=
p; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/dbus/lib/libdbus-1.3.dylib (com=
patibility version 36.0.0, current version 36.4.0)</div><div id=3D=22bloo=
p=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; =
/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 1=
0.9.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22=
>&nbsp; &nbsp; &nbsp; &nbsp; /usr/lib/libncurses.5.4.dylib (compatibility=
 version 5.4.0, current version 5.4.0)</div><div id=3D=22bloop=5Fcustomfo=
nt=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebre=
w/opt/gnutls/lib/libgnutls.30.dylib (compatibility version 69.0.0, curren=
t version 69.0.0)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22marg=
in: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/little-cms2/lib=
/liblcms2.2.dylib (compatibility version 3.0.0, current version 3.16.0)</=
div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; =
&nbsp; &nbsp; &nbsp; /usr/lib/libz.1.dylib (compatibility version 1.0.0, =
current version 1.2.12)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22=
margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /opt/homebrew/opt/gmp/lib/lib=
gmp.10.dylib (compatibility version 16.0.0, current version 16.0.0)</div>=
<div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbs=
p; &nbsp; &nbsp; /opt/homebrew/opt/tree-sitter/lib/libtree-sitter.0.24.dy=
lib (compatibility version 0.0.0, current version 0.0.0)</div><div id=3D=22=
bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nb=
sp; /opt/homebrew/opt/sqlite/lib/libsqlite3.0.dylib (compatibility versio=
n 9.0.0, current version 9.6.0)</div><div id=3D=22bloop=5Fcustomfont=22 s=
tyle=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /System/Library/=46=
rameworks/Core=46oundation.framework/Versions/A/Core=46oundation (compati=
bility version 150.0.0, current version 3107.0.0)</div><div id=3D=22bloop=
=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; &nbsp; /=
System/Library/=46rameworks/CoreGraphics.framework/Versions/A/CoreGraphic=
s (compatibility version 64.0.0, current version 1883.1.10)</div><div id=3D=
=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; &nbsp; =
&nbsp; /System/Library/=46rameworks/CoreServices.framework/Versions/A/Cor=
eServices (compatibility version 1.0.0, current version 1226.0.0)</div><d=
iv id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp;=
 &nbsp; &nbsp; /System/Library/=46rameworks/CoreText.framework/Versions/A=
/CoreText (compatibility version 1.0.0, current version 844.1.0)</div><di=
v id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbsp; &nbsp; =
&nbsp; &nbsp; /System/Library/=46rameworks/=46oundation.framework/Version=
s/C/=46oundation (compatibility version 300.0.0, current version 3107.0.0=
)</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>&nbs=
p; &nbsp; &nbsp; &nbsp; /usr/lib/libobjc.A.dylib (compatibility version 1=
.0.0, current version 228.0.0)</div><div><br></div></div></div> <br> <div=
 id=3D=22bloop=5Fsign=5F1733902994385515008=22 class=3D=22bloop=5Fsign=22=
><p class=3D=22MsoNormal=22>------------</p><p class=3D=22MsoNormal=22><s=
pan style=3D=22font-family: Arial, sans-serif; font-size: 13.333333px;=22=
>Sincerely</span>,</p><p class=3D=22MsoNormal=22><br></p><p class=3D=22Ms=
oNormal=22><b>Haiyuan Zhang, Vinurs</b></p><p class=3D=22MsoNormal=22>Bin=
aryBrain LLC</p></div> <br><p class=3D=22airmail=5Fon=22>=E5=BC=80 2024=E5=
=B9=B412=E6=9C=8811=E6=97=A5 =E5=9C=A8 15:04:40, Yuan =46u (<a href=3D=22=
mailto:casouri=40gmail.com=22>casouri=40gmail.com</a>) =E5=86=99=E5=88=B0=
:</p> <blockquote type=3D=22cite=22 class=3D=22clean=5Fbq=22><span><div><=
div></div><div>
<br>
<br>&gt; On Dec 7, 2024, at 4:22=E2=80=AFAM, Eli Zaretskii &lt;eliz=40gnu=
.org&gt; wrote:
<br>&gt; =20
<br>&gt; Ping=21 Can anybody reproduce this and debug the problem=3F
<br>&gt; =20
<br>&gt;&gt; Date: Mon, 25 Nov 2024 19:21:49 +0800
<br>&gt;&gt; =46rom: vinurs &lt;hi=40vinurs.me&gt;
<br>&gt;&gt; Cc: 73310=40debbugs.gnu.org, Eli Zaretskii &lt;eliz=40gnu.or=
g&gt;
<br>&gt;&gt; =20
<br>&gt;&gt; =20
<br>&gt;&gt; Hi Yuan,
<br>&gt;&gt; I installed tree-sitter version 0.24.4 using brew install tr=
ee-sitter. =20
<br>&gt;&gt; I then tried the following Emacs versions: =20
<br>&gt;&gt; 1. emacs-plus=4030 =20
<br>&gt;&gt; 2. emacs-plus=4031 =20
<br>&gt;&gt; 3. Emacs-pretest-30.0.92-universal.dmg
<br>&gt;&gt; (https://emacsformacosx.com/emacs-builds/Emacs-pretest-30.0.=
92-universal.dmg) =20
<br>&gt;&gt; 4. Compiled Emacs myself with the following configuration: =20
<br>&gt;&gt; ./configure --with-tree-sitter=3D/opt/homebrew/opt/tree-sitt=
er --with-native-comp
<br>&gt;&gt; I attempted to reproduce the issue using the following steps=
: =20
<br>&gt;&gt; Move to line 52. Delete all characters following :error-code=
. Quickly press the spacebar twice. At this point,
<br>&gt;&gt; Emacs freezes.
<br>&gt;&gt; The issue persists across all versions and builds.
<br>&gt;&gt; =20
<br>&gt;&gt; ------------
<br>&gt;&gt; =20
<br>&gt;&gt; Sincerely,
<br>&gt;&gt; =20
<br>&gt;&gt; Haiyuan Zhang, Vinurs
<br>&gt;&gt; =20
<br>&gt;&gt; BinaryBrain LLC
<br>&gt;&gt; =20
<br>&gt;&gt; =E5=BC=80 2024=E5=B9=B411=E6=9C=8825=E6=97=A5 =E5=9C=A8 09:4=
8:30, Yuan =46u (casouri=40gmail.com) =E5=86=99=E5=88=B0:
<br>&gt;&gt; =20
<br>&gt;&gt;&gt; On Nov 10, 2024, at 3:35=E2=80=AFAM, vinurs &lt;hi=40vin=
urs.me&gt; wrote: =20
<br>&gt;&gt;&gt; =20
<br>&gt;&gt;&gt; Because I saw Yuan=E2=80=99s response in the tree-sitter=
 issue thread stating that this bug had already been
<br>&gt;&gt; fixed, so I'm not sure if it=E2=80=99s the same issue anymor=
e.
<br>&gt;&gt;&gt; =20
<br>&gt;&gt;&gt; https://github.com/tree-sitter/tree-sitter/issues/3620 =20
<br>&gt;&gt;&gt; =20
<br>&gt;&gt;&gt; ------------ =20
<br>&gt;&gt;&gt; Sincerely, =20
<br>&gt;&gt;&gt; =20
<br>&gt;&gt;&gt; Haiyuan Zhang, Vinurs =20
<br>&gt;&gt;&gt; BinaryBrain LLC
<br>&gt;&gt; =20
<br>&gt;&gt; Sorry for the late response. I went over the reproduce recip=
e again, and at least for me, Emacs
<br>&gt;&gt; doesn=E2=80=99t hang anymore. Maybe your Emacs isn=E2=80=99t=
 picking up the right tree-sitter library=3F =20
<br>&gt;&gt; =20
<br>&gt;&gt; Yuan
<br>
<br>I tried again with v0.24.4 and emacs 30, and still can=E2=80=99t repr=
oduce this. Haiyuan, if you run =20
<br>
<br>otool -L &lt;emacs-binary&gt;
<br>
<br>What=E2=80=99s the location of libtree-sitter=3F I=E2=80=99m asking t=
o see if there=E2=80=99s an old tree-sitter library on your system that E=
macs is picking up over the new library you installed.
<br>
<br>Yuan</div></div></span></blockquote>



--675942c9_423bdd41_2ce9--