all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: mishazharov1@gmail.com, 61849@debbugs.gnu.org
Subject: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar because repo doesn't have parser.c
Date: Fri, 3 Mar 2023 14:27:05 -0800	[thread overview]
Message-ID: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@gmail.com> (raw)
In-Reply-To: <CAEzzQa8SQi8ysPQz2k4B-e4ffpGaWZD4zFm+9VyyRGRu+y92UQ@mail.gmail.com>


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Misha Zharov <mishazharov1@gmail.com>
>> Date: Mon, 27 Feb 2023 19:13:59 -0800
>> Cc: 61849@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





  parent reply	other threads:[~2023-03-03 22:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-27  7:34 bug#61849: 29.0.60; Unable to use treesit-install-language-grammar because repo doesn't have parser.c Misha Zharov
2023-02-27 20:00 ` Eli Zaretskii
2023-02-28  3:13   ` Misha Zharov
2023-02-28 12:04     ` Eli Zaretskii
2023-03-03 22:27 ` Yuan Fu [this message]
2023-03-04  7:06   ` Eli Zaretskii
2023-03-04 11:06     ` Eli Zaretskii
2023-03-04 20:52       ` Misha Zharov
2023-03-19  7:38       ` Eli Zaretskii
2023-03-20  5:14         ` Misha Zharov
2023-03-20 19:28           ` Eli Zaretskii
2023-03-20 20:04             ` Dmitry Gutov
2023-03-20 20:20               ` Eli Zaretskii
2023-03-20 22:01                 ` Gregory Heytings
2023-03-21  3:27                   ` Eli Zaretskii
2023-03-21  9:39                     ` Gregory Heytings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B2F89764-ABBF-4606-9A41-4BB062E0BB8E@gmail.com \
    --to=casouri@gmail.com \
    --cc=61849@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=mishazharov1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.