GNU bug report logs - #73310
tree-sitter makes cpu 100%

Previous Next

Package: emacs;

Reported by: vinurs <hi <at> vinurs.me>

Date: Tue, 17 Sep 2024 01:28:01 UTC

Severity: normal

Full log


Message #32 received at 73310 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: vinurs <hi <at> vinurs.me>
Cc: 73310 <at> debbugs.gnu.org, casouri <at> gmail.com
Subject: Re: bug#73310: tree-sitter makes cpu 100%
Date: Sat, 07 Dec 2024 14:22:06 +0200
Ping! Can anybody reproduce this and debug the problem?

> Date: Mon, 25 Nov 2024 19:21:49 +0800
> From: vinurs <hi <at> vinurs.me>
> Cc: 73310 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> 
> 
> 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 <at> 30 
> 2. emacs-plus <at> 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 <at> gmail.com) 写到:
> 
>  > On Nov 10, 2024, at 3:35 AM, vinurs <hi <at> vinurs.me> 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




This bug report was last modified 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.