From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: vinurs Newsgroups: gmane.emacs.bugs Subject: bug#73310: tree-sitter makes cpu 100% Date: Wed, 18 Dec 2024 23:22:19 +0800 Message-ID: References: <86ldzqbh02.fsf@gnu.org> <86bjynl43x.fsf@gnu.org> <0653B68D-3F98-4D06-8C37-8976DC8C2BA4@gmail.com> <861pyjk7ip.fsf@gnu.org> <7C7183A4-758E-491E-B403-A57723598F53@gmail.com> <3EACFBFF-2E78-4746-8143-1DCB20A5AEAD@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="6762e8b0_45a328d5_57a9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14931"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73310@debbugs.gnu.org, Eli Zaretskii To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 18 16:23:37 2024 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 1tNvtg-0003fU-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Dec 2024 16:23:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNvtF-0007k0-DP; Wed, 18 Dec 2024 10:23:09 -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 ) id 1tNvtC-0007jn-2o for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 10:23:06 -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 ) id 1tNvtB-00056r-JU for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 10:23:05 -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=WkloXJx1bqcHg0XgdtIFe/T//wOxAAo9AV7SMhjRzxg=; b=Put81kRps6wnbtLp5vkbiwjPq45c8Se39kKXC/RCH6aqmelrn2uQNKp2TZcWkyb1Vqy1ie/vC+fD3HUPw5OcGQinmYK8MqJIquU3Ggu1qToaNHLK6KqvR+vLYIFokrK1hHgIFvq1X/oTsoI8IYbJ6bzadvQV+WrDjoXhbkWGSAd+SPrsQ9Hz+KuIDbsM/+uV45+dPNkLUvG+ft42uzuFRjVeRO5RPOCV2G1o8NdfjOtYVSKRU3uISHcWnMTaoZZ6VDIlKIsvTo7O/2N8MeMyoDDw23xMW/5mVsopJiPBcVRuWYqQ7N9Rj9oFnawO2yaiTAO0MO//wfse0DKWIP+23g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNvt8-0000tW-AZ for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 10:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: vinurs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Dec 2024 15:23:02 +0000 Resent-Message-ID: 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.17345353663408 (code B ref 73310); Wed, 18 Dec 2024 15:23:02 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 18 Dec 2024 15:22:46 +0000 Original-Received: from localhost ([127.0.0.1]:35590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNvsr-0000su-EC for submit@debbugs.gnu.org; Wed, 18 Dec 2024 10:22:45 -0500 Original-Received: from sender4-op-o12.zoho.com ([136.143.188.12]:17270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNvsp-0000sl-EX for 73310@debbugs.gnu.org; Wed, 18 Dec 2024 10:22:44 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1734535350; cv=none; d=zohomail.com; s=zohoarc; b=e+xIINgW/L7XNlXLrZcy18IPNyG32B/yKKmFSoMhaQSSa30D7OP4o9OFEl7K9hjOtykOaal9KS8bTN5ra9Lx6wUOdn1b0Si0e11GVZC4wMv+brxdHrIWBhOt/8ZsYbFcNmA0JEQumC/6J9wb2MqfUS7LWMMMIHm79XDGeK6H/BE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734535350; 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=WkloXJx1bqcHg0XgdtIFe/T//wOxAAo9AV7SMhjRzxg=; b=Uh/WCMPGJYlRBihKgGJKOSoZh7AbLoAY7lx0Qpt3em5xwqXXZCvV7KPR399+b2vGtTpsaIl0JiczGSXWBxWwnz10qyZ7pE/TqYKY6X8E3YthNcYkZ6xGgnm7A39DS0Wdd7WTcgY2WW9U0RevTBMN+byohXApYThMx/ECuHA/6Vc= 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= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1734535350; 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=WkloXJx1bqcHg0XgdtIFe/T//wOxAAo9AV7SMhjRzxg=; b=cdraX1YFK64M0X1zH6HBDt4baiFklPc5eMhe3dSEUGAzzBS/4mOaQN3LtYKVeeMF 64C0tAU+OkoxkFb1PVMl8kC5crs3pJcKfA/fzEd9Epl/GmfuYbFkyOSUhUY/spaBFbU AzboFUvJrasGcpDOzKFqJND8LwkU7aan+wninlEQ= Original-Received: by mx.zohomail.com with SMTPS id 1734535348688139.60531557298123; Wed, 18 Dec 2024 07:22:28 -0800 (PST) In-Reply-To: <3EACFBFF-2E78-4746-8143-1DCB20A5AEAD@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" 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:297339 Archived-At: --6762e8b0_45a328d5_57a9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Has there been any progress on this issue=3F It has been troubling me for= a long time. My Emacs basically freezes every few minutes, and I have to= restart Emacs. =20 ------------ Sincerely, Haiyuan Zhang, Vinurs BinaryBrain LLC =20 =E5=BC=80 2024=E5=B9=B412=E6=9C=8812=E6=97=A5 =E5=9C=A8 12:52:35, Yuan =46= u (casouri=40gmail.com) =E5=86=99=E5=88=B0: =20 > On Dec 11, 2024, at 12:10=E2=80=AFAM, vinurs wrote: > =20 > Hi, > I checked the md5 Thanks for your patience on this. And actually, you=E2=80=99re right. I c= an reproduce this now. I couldn=E2=80=99t reproduce it before because I w= as pressing space too fast. I was messing around with the reproduce steps= and found that if I press the two spaces slower, I can reliably reproduc= e this. This is baffling because the C reproduce program I built to exactly repli= cate this recipe doesn=E2=80=99t hang after the fix in tree-sitter. Once = I figure out why I=E2=80=99ll send another bug report to tree-sitter. And= sorry that this wasn=E2=80=99t fixed. Yuan --6762e8b0_45a328d5_57a9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
Has there been any progress on this= issue=3F It has been troubling me for a long time. My Emacs basically fr= eezes every few minutes, and I have to restart Emacs.

------------

Sincerely,


Haiyuan Zhang, Vinurs

Bin= aryBrain LLC


=E5=BC=80 2024=E5= =B9=B412=E6=9C=8812=E6=97=A5 =E5=9C=A8 12:52:35, Yuan =46u (casouri=40gmail.com) =E5=86=99=E5=88=B0= :

<= div>


> On Dec 11, 2024, at 12:10=E2=80=AFAM, vinurs <hi=40vinurs.me&= gt; wrote:
> =20
> Hi,
> I checked the md5<CleanShot 2024-12-11 at 16.07.55=402x.png&g= t;

Thanks for your patience on this. And actually, you=E2=80=99re right.= I can reproduce this now. I couldn=E2=80=99t reproduce it before because= I was pressing space too fast. I was messing around with the reproduce s= teps and found that if I press the two spaces slower, I can reliably repr= oduce this.

This is baffling because the C reproduce program I built to exactly r= eplicate this recipe doesn=E2=80=99t hang after the fix in tree-sitter. O= nce I figure out why I=E2=80=99ll send another bug report to tree-sitter.= And sorry that this wasn=E2=80=99t fixed.

Yuan
--6762e8b0_45a328d5_57a9--