GNU bug report logs -
#61849
29.0.60; Unable to use treesit-install-language-grammar because repo doesn't have parser.c
Previous Next
Full log
Message #17 received at 61849 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Misha Zharov <mishazharov1 <at> gmail.com>
>> Date: Mon, 27 Feb 2023 19:13:59 -0800
>> Cc: 61849 <at> debbugs.gnu.org
>>
>> Thanks for getting back to me
>>
>> > (Btw, why not use https://github.com/DerekStride/tree-sitter-sql
>> > instead?)
>>
>> I just landed on the other one first, no particular reason. Initially it
>> worked until they removed the autogenerated code that was in
>> the repo. As a workaround I can switch to the sql grammar that you
>> have recommended, but the problem might occur again in other
>> repos.
>>
>> > I'm not sure we should incorporate in Emacs so much of this
>> > specialized stuff.
>>
>> That's fair, but I fear that more repos will remove the autogenerated
>> parser code, which will make treesit-install-language-grammar
>> much less useful.
>
> If that starts to happen too much, we'll need to rethink this feature.
> It is supposed to be extremely reliable, and this should not rely on
> tools that might not be installed, because giving clueless users a
> tool that fails unless one "tinkers" is not a good idea, IMO.
>
> I'll leave this bug open for now.
Not sure why that project removed the grammar.c files, it seems
ubiquitous for tree-sitter language grammar projects to include the
generated grammar.c file in the repo.
Yuan
This bug report was last modified 83 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.