[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter api
From: |
Yuan Fu |
Subject: |
Re: Tree-sitter api |
Date: |
Sat, 18 Dec 2021 18:51:25 -0800 |
>>
>>> Would you please ping the authors and tell them that this single issue
>>> prevents us from integrating TS into Emacs? Maybe that would change
>>> their priorities. I cannot imagine that the feature we are asking is
>>> hard to implement.
>>
>> That feature in itself won't be enough. Even with it, TreeSitter will have
>> the same problem as GMP: allocation isn't allowed to fail, and longjmp'ing
>> out of it isn't allowed and generally causes undefined behavior.
>
> It may not be enough to satisfy purists, but it's enough to allow the
> user to save the session and shut down Emacs in an orderly fashion,
> instead of abruptly exiting and losing all the edits.
Uses can set tree-sitter-maximum-size to limit memory usage of tree-sitter.
Buffers with size larger than that cannot enable tree-sitter. That doesn’t
solve the problem directly but should let users avoid allocation failing most
of the time.
Yuan
- Re: Tree-sitter api, Yuan Fu, 2021/12/13
- Re: Tree-sitter api, Eli Zaretskii, 2021/12/13
- Re: Tree-sitter api, Philipp, 2021/12/18
- Re: Tree-sitter api, Eli Zaretskii, 2021/12/18
- Re: Tree-sitter api,
Yuan Fu <=
- Re: Tree-sitter api, Eli Zaretskii, 2021/12/19
- Re: Tree-sitter api, Yuan Fu, 2021/12/19
- Re: Tree-sitter api, Yoav Marco, 2021/12/24
- Re: Tree-sitter api, Yoav Marco, 2021/12/24
- Re: Tree-sitter api, Yuan Fu, 2021/12/25
- Re: Tree-sitter api, Eli Zaretskii, 2021/12/25
- Re: Tree-sitter api, Yuan Fu, 2021/12/26
- Re: Tree-sitter api, Eli Zaretskii, 2021/12/26
- Re: Tree-sitter api, Yuan Fu, 2021/12/29
- Re: Tree-sitter api, Eli Zaretskii, 2021/12/30