From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73310: tree-sitter makes cpu 100% Date: Sat, 07 Dec 2024 14:22:06 +0200 Message-ID: <861pyjk7ip.fsf@gnu.org> References: <86ldzqbh02.fsf@gnu.org> <86bjynl43x.fsf@gnu.org> <0653B68D-3F98-4D06-8C37-8976DC8C2BA4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73310@debbugs.gnu.org, casouri@gmail.com To: vinurs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 13:23:18 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 1tJtq9-0004DX-N2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 13:23:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJtpx-0002zz-6J; Sat, 07 Dec 2024 07:23:05 -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 1tJtpu-0002zp-LA for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:23: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 ) id 1tJtpu-0001FV-Bo for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:23: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=y+yqwlR5e3YFxxVQWiOL+9jk/x2taSkGpejt9Vd24cA=; b=UlsQT9cV8XcZok8nxT78ksyvpcjoHWxfa5Y73DZi74KlPWcZbM5hdYzOsVvcqLO/ZW9N06jdVNKs2YajbpUr8xLIq48bRWRmdm9yrCsW1EBTEa3SQt28tZOS++BQDwkH8krEU1cpR0pX1GxFht/mEABADOKsiU0r+Oms3UzZiVdZn0qDI3nC/lDZBuNtG7b3kNX9Xx3I0gwQtoJuRbndTuggbh7svG5f/x5b1GcD9pZV/xWaOkeKbjqo6+SC6UN/FQEcxSxaSaJRkuuc/NKOUP6YCzoiuwP339UR0ltFwEdet/52A0C1z446FiiY9bCn0MRTLUd6Iw9ah/equk/3vA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJtpu-0001eU-5z for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Dec 2024 12: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.17335741376258 (code B ref 73310); Sat, 07 Dec 2024 12:23:02 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 7 Dec 2024 12:22:17 +0000 Original-Received: from localhost ([127.0.0.1]:45690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtpB-0001cs-5f for submit@debbugs.gnu.org; Sat, 07 Dec 2024 07:22:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtp8-0001ca-JV for 73310@debbugs.gnu.org; Sat, 07 Dec 2024 07:22:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJtp3-0001DH-4B; Sat, 07 Dec 2024 07:22:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=y+yqwlR5e3YFxxVQWiOL+9jk/x2taSkGpejt9Vd24cA=; b=An9pKePNwVhb0fmn5zTe swQx5UEsJIJ4qjbIy8MtDJwxanSA8d81oV6FxavH5QJ6xn7uAe/833SpyarzF80wPwvp/ajh/MatY riAdtKPpccyiSFhNHqs/KAO+ZYlLr/Oe1YdPzJZ+4VBKudA/CeWU7J6FAUBgn0EuOSMuJWxCRSg82 ucThtX/O5XHX9SYZyqGY3eUclN9r2sfH9lT4Fh4TpBFrVv1vJZ8Xi2sSLIcZwM2AosEkns5AtOQfR NqiVQmE+RP49UM5roDn4YmQwjgi/C0NlP3NiyD3RG9jm/tnvCUu7j/A2T8O8BmfrzdJd4n5Gh74NO xzEfnXEKvM875g==; In-Reply-To: (message from vinurs on Mon, 25 Nov 2024 19:21:49 +0800) 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:296548 Archived-At: Ping! Can anybody reproduce this and debug the problem? > Date: Mon, 25 Nov 2024 19:21:49 +0800 > From: vinurs > Cc: 73310@debbugs.gnu.org, Eli Zaretskii > > > Hi Yuan, > I installed tree-sitter version 0.24.4 using brew install tree-sitter. > I then tried the following Emacs versions: > 1. emacs-plus@30 > 2. emacs-plus@31 > 3. Emacs-pretest-30.0.92-universal.dmg > (https://emacsformacosx.com/emacs-builds/Emacs-pretest-30.0.92-universal.dmg) > 4. Compiled Emacs myself with the following configuration: > ./configure --with-tree-sitter=/opt/homebrew/opt/tree-sitter --with-native-comp > I attempted to reproduce the issue using the following steps: > 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. > > ------------ > > Sincerely, > > Haiyuan Zhang, Vinurs > > BinaryBrain LLC > > 开 2024年11月25日 在 09:48:30, Yuan Fu (casouri@gmail.com) 写到: > > > On Nov 10, 2024, at 3:35 AM, vinurs wrote: > > > > Because I saw Yuan’s response in the tree-sitter issue thread stating that this bug had already been > fixed, so I'm not sure if it’s the same issue anymore. > > > > https://github.com/tree-sitter/tree-sitter/issues/3620 > > > > ------------ > > Sincerely, > > > > Haiyuan Zhang, Vinurs > > BinaryBrain LLC > > Sorry for the late response. I went over the reproduce recipe again, and at least for me, Emacs > doesn’t hang anymore. Maybe your Emacs isn’t picking up the right tree-sitter library? > > Yuan