GNU bug report logs -
#60237
30.0.50; tree sitter core dumps when I edebug view a node
Previous Next
Reported by: Mickey Petersen <mickey <at> masteringemacs.org>
Date: Wed, 21 Dec 2022 12:30:02 UTC
Severity: normal
Found in version 30.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 28/02/2023 00:37, Yuan Fu wrote:
>> My main interest is now refactoring and how to best do it. If TS can
>> do some of it, then all the better. I realise it was never meant to,
>> but if we can continue accessing the information contained in a node
>> even if it is outdated, then that could be useful, however niche.
> I guess “refactoring” includes not only whitespace changes but also some structural changes like slurping (or whatever it’s called), right? If you want to do structural changes, tree-sitter probably can’t help you much, as you observed. Maybe it’s better to “export” the tree-sitter tree to your own tree and do transformations with it? Maybe that’s already what you does now.
>
Or simply produce all the editing information up front, and then modify
the buffer in different places in one swoop.
Just like treesit-indent-region does.
That almost the same as described, but doesn't require creating a
parallel parse tree hierarchy.
This bug report was last modified 2 years and 128 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.