[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60559: 29.0.60; "Cannot activate tree-sitter" spam
From: |
Po Lu |
Subject: |
bug#60559: 29.0.60; "Cannot activate tree-sitter" spam |
Date: |
Thu, 05 Jan 2023 08:43:12 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Daniel Martín <mardani29@yahoo.es>
>> Cc: Eric Gillespie <epg@pretzelnet.org>, 60559@debbugs.gnu.org
>> Date: Wed, 04 Jan 2023 20:40:24 +0100
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> >
>> > This is not a bug. Emacs 29 comes with major modes for TOML files and
>> > for Dockerfiles, and those new major modes require that you build
>> > Emacs with the tree-sitter library (and install the corresponding
>> > parser grammar libraries). If you don't want to do that, you can
>> > instead customize auto-mode-alist to make Emacs use Fundamental mode
>> > (or any other mode you like) for these two file types.
>>
>> Isn't this another manifestation of what's being discussed in bug#60511?
>> I also think that treesit-ready-p should not emit a warning by default,
>> it's too noisy and confusing for people that don't know about
>> Tree-sitter and consequently use a build of Emacs 29 without Tree-sitter
>> enabled.
>
> That is one use case. The other, no less important one, is when the
> user thinks his/her Emacs is built with tree-sitter and has the
> relevant stuff installed, whereas the reality is different. Silently
> doing nothing in that case is hardly TRT.
>
> So if we want to solve this, we need to find a solution that fits both
> of these use cases.
>
>> Also, it's strange that, even if Tree-sitter is not configured at all, a
>> major mode whose description mentions Tree-sitter is apparently loaded.
>
> I don't find it strange at all.
Slightly unrelated to this bug.
I think we will have to find a way to bundle certain tree-sitter
grammars with Emacs. On Android, system policy prohibits programs from
loading dynamic libraries that are not installed by the system in a read
only location upon installation of the application package itself, so
asking users to build those grammars will not work at all.
Android users typically have no C compiler installed either.
Thanks.
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eric Gillespie, 2023/01/04
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/04
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Daniel Martín, 2023/01/04
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/04
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam,
Po Lu <=
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Ihor Radchenko, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Ihor Radchenko, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Ihor Radchenko, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Ihor Radchenko, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Eli Zaretskii, 2023/01/05
- bug#60559: 29.0.60; "Cannot activate tree-sitter" spam, Ihor Radchenko, 2023/01/05