GNU bug report logs - #71679
29.3; treesit-node-child function chokes and crashes emacs for nodes with large number of child nodes

Previous Next

Package: emacs;

Reported by: Mauritz Stenek <mstenek <at> disroot.org>

Date: Thu, 20 Jun 2024 15:09:01 UTC

Severity: normal

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mauritz Stenek <mstenek <at> disroot.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 71679 <at> debbugs.gnu.org
Subject: bug#71679: 29.3; treesit-node-child function chokes and crashes emacs for nodes with large number of child nodes
Date: Thu, 20 Jun 2024 11:07:28 -0600
On 2024-06-20 at 10:50, Eli Zaretskii <eliz <at> gnu.org> wrote:

> [Please use Reply All to keep the bug tracker CC'ed.]

Will do -- I'm new at this.

>> From: Mauritz Stenek <mstenek <at> disroot.org>
>> Date: Thu, 20 Jun 2024 10:36:09 -0600
>> 
>> Here's the recipe:
>> 
>> 1) launch emacs -q
>> 
>> 2) Execute the following:
>> 
>> ```
>> (setq treesit-language-source-alist
>>       '((julia 
>>       "https://github.com/tree-sitter/tree-sitter-julia")))
>> 
>> (setq major-mode-remap-alist
>>       '((julia-mode . julia-ts-mode)))
>> 
>> (treesit-install-language-grammar 'julia)
>> ```
>
> Thanks, but which julia-mode and julia-ts-mode are you using?

Julia mode: https://github.com/JuliaEditorSupport/julia-emacs
Julia ts mode: https://github.com/nick4f42/julia-ts-mode

> Or maybe it will be easier for everyone if you show a recipe 
> with
> java-ts-mode?

Its basically the same as the julia example, just replace the 
references to julia with java.

-- 
Mauritz Stenek <mstenek <at> disroot.org>




This bug report was last modified 1 year and 27 days ago.

Previous Next


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